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 11ad0eba2be18f4f46357c7cf26736caf5e4d613..dedee767a2f5c2b5a2a22489e1ce2c2a3fc72075 100644 (file)
@@ -8,7 +8,9 @@
 [Unit]
 Description=Update RTC With System Clock
 DefaultDependencies=no
 [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
 
 [Service]
 Type=oneshot
index 6539bdceffb2d7616cc05275f57489083f7ad100..9a074cf3fe39405647e53a25dd17675ab0f96d37 100644 (file)
@@ -8,7 +8,8 @@
 [Unit]
 Description=Save Random Seed
 DefaultDependencies=no
 [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]
 Conflicts=systemd-random-seed-load.service
 
 [Service]