From: Lennart Poettering Date: Tue, 23 Nov 2010 00:37:18 +0000 (+0100) Subject: units: simplify shutdown scripts X-Git-Tag: v14~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a80c124356e87dadd1af2b386e77c9b286bbbf;p=systemd units: simplify shutdown scripts --- diff --git a/units/hwclock-save.service b/units/hwclock-save.service index 11ad0eba..dedee767 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 6539bdce..9a074cf3 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]