]> err.no Git - systemd/commitdiff
units: write utmp record before we kill all processes
authorLennart Poettering <lennart@poettering.net>
Sat, 14 Aug 2010 17:25:12 +0000 (19:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Aug 2010 17:25:12 +0000 (19:25 +0200)
units/systemd-update-utmp-runlevel.service.in
units/systemd-update-utmp-shutdown.service.in

index 90bb9379e02d367af5cd9e0e4496e819aa770a1f..0b4c83dd861df8e4cec651a12139de6a601c3e9b 100644 (file)
@@ -9,6 +9,8 @@
 Description=Notify Audit System and Update UTMP about System Runlevel Changes
 DefaultDependencies=no
 After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target auditd.service
+Conflicts=shutdown.target
+Before=shutdown.target
 
 [Service]
 Type=oneshot
index f5d1342243b9b4fdd266f3919055a2507c6f8b60..4c48c8b53ad12428826cab09ecfe54189a845816 100644 (file)
@@ -8,7 +8,7 @@
 [Unit]
 Description=Notify Audit System and Update UTMP about System Shutdown
 DefaultDependencies=no
-Before=killall.service
+Before=poweroff.service reboot.service halt.service killall.service
 Conflicts=systemd-update-utmp-runlevel.service
 
 [Service]