diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-23 01:37:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-23 01:37:18 +0100 |
commit | d4a80c124356e87dadd1af2b386e77c9b286bbbf (patch) | |
tree | 630dc748291f46d7e7898f12e948f4887bbbc5f6 | |
parent | aeb70c8d60dd6e21dc3e2b20072f30c045d12261 (diff) |
units: simplify shutdown scripts
-rw-r--r-- | units/hwclock-save.service | 4 | ||||
-rw-r--r-- | units/systemd-random-seed-save.service.in | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/units/hwclock-save.service b/units/hwclock-save.service index 11ad0eba2b..dedee767a2 100644 --- a/units/hwclock-save.service +++ b/units/hwclock-save.service @@ -8,7 +8,9 @@ [Unit] Description=Update RTC With System Clock DefaultDependencies=no -Before=poweroff.service reboot.service halt.service +After=hwclock-load.service +Before=shutdown.target +Conflicts=hwclock-load.service [Service] Type=oneshot diff --git a/units/systemd-random-seed-save.service.in b/units/systemd-random-seed-save.service.in index 6539bdceff..9a074cf3fe 100644 --- a/units/systemd-random-seed-save.service.in +++ b/units/systemd-random-seed-save.service.in @@ -8,7 +8,8 @@ [Unit] Description=Save Random Seed DefaultDependencies=no -Before=poweroff.service reboot.service halt.service +After=systemd-random-seed-load.service +Before=shutdown.target Conflicts=systemd-random-seed-load.service [Service] |