]> err.no Git - systemd/commitdiff
units: make sure the file system is writable before we write utmp data
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2010 23:07:06 +0000 (01:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2010 23:07:06 +0000 (01:07 +0200)
units/systemd-update-utmp-runlevel.service.in
units/systemd-update-utmp-shutdown.service.in

index 724e4a4c3a34c34a4639c63bb5b532dc6d7ada8e..0cbde37c2a7a13038543b660d41e45c585df8c96 100644 (file)
@@ -8,8 +8,9 @@
 [Unit]
 Description=Notify Audit System and Update UTMP about System Runlevel Changes
 DefaultDependencies=no
+Wants=local-fs.target sysinit.target
+After=local-fs.target sysinit.target auditd.service runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
 Before=poweroff.service reboot.service halt.service killall.service
-After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target auditd.service
 
 [Service]
 Type=oneshot
index 2042b71cb77690a3aab632db873df066500f49a4..0b4fe928e0451f5ebf7ee80af24c1b58f9402899 100644 (file)
@@ -8,8 +8,9 @@
 [Unit]
 Description=Notify Audit System and Update UTMP about System Shutdown
 DefaultDependencies=no
+Wants=local-fs.target sysinit.target
+After=local-fs.target sysinit.target auditd.service systemd-update-utmp-runlevel.service
 Before=poweroff.service reboot.service halt.service killall.service
-After=systemd-update-utmp-runlevel.service
 
 [Service]
 Type=oneshot