diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-28 23:18:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-29 00:45:46 +0200 |
commit | b81884e7466b8e8bc1261b1b1a722d11694b8c54 (patch) | |
tree | a974af7656baa8eadb0bb0fec0bfe44e4885bb8c /units | |
parent | 941a4041bdb9d91e9d5033005263efe029621e4f (diff) |
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.
Diffstat (limited to 'units')
-rw-r--r-- | units/fsck@.service.in | 2 | ||||
-rw-r--r-- | units/getty@.service.m4 | 2 | ||||
-rw-r--r-- | units/serial-getty@.service.m4 | 2 |
3 files changed, 3 insertions, 3 deletions
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 |