units: simplify shutdown scripts

This commit is contained in:
Lennart Poettering 2010-11-23 01:37:18 +01:00
parent aeb70c8d60
commit d4a80c1243
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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]