chiark / gitweb /
units: simplify shutdown scripts
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Nov 2010 00:37:18 +0000 (01:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Nov 2010 00:37:18 +0000 (01:37 +0100)
units/hwclock-save.service
units/systemd-random-seed-save.service.in

index 11ad0eb..dedee76 100644 (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
index 6539bdc..9a074cf 100644 (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]