From b81884e7466b8e8bc1261b1b1a722d11694b8c54 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Oct 2010 23:18:47 +0200 Subject: unit: replace StopRetroactively= by BindTo= dependencies The property StopRetroactively= needs to be per-dependency, not per-unit, in order to properly express dependencies between .mount units and its .device and fsck .service units. If the .device unit is unplugged the mount should go away, but if the fsck process terminates the .mount should stay. --- units/fsck@.service.in | 2 +- units/getty@.service.m4 | 2 +- units/serial-getty@.service.m4 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'units') diff --git a/units/fsck@.service.in b/units/fsck@.service.in index 54caa3c965..38815414fa 100644 --- a/units/fsck@.service.in +++ b/units/fsck@.service.in @@ -8,7 +8,7 @@ [Unit] Description=File System Check on %f DefaultDependencies=no -Requires=%i.device +BindTo=%i.device After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device Before=local-fs.target shutdown.target diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index 98c6a88213..1edcad9f0e 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -14,7 +14,7 @@ m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty -8 38400')')m4_dnl m4_dnl [Unit] Description=Getty on %I -Requires=dev-%i.device +BindTo=dev-%i.device After=dev-%i.device m4_ifdef(`TARGET_FEDORA', After=rc-local.service diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4 index 9a70db0f21..da9bd1946b 100644 --- a/units/serial-getty@.service.m4 +++ b/units/serial-getty@.service.m4 @@ -7,7 +7,7 @@ [Unit] Description=Serial Getty on %I -Requires=dev-%i.device +BindTo=dev-%i.device After=dev-%i.device m4_ifdef(`TARGET_FEDORA', After=rc-local.service -- cgit v1.2.3-54-g00ecf