summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-14 19:25:12 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-14 19:25:12 +0200
commit0dcc78574905ca0e31694238662002bd36ca65d4 (patch)
treeddf954e68c8c3bf3100d85c31d0f366e62067e64 /units
parent2a2387d8a9628765e7eb25cbcb21fa8b428199c8 (diff)
units: write utmp record before we kill all processes
Diffstat (limited to 'units')
-rw-r--r--units/systemd-update-utmp-runlevel.service.in2
-rw-r--r--units/systemd-update-utmp-shutdown.service.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in
index 90bb9379e0..0b4c83dd86 100644
--- a/units/systemd-update-utmp-runlevel.service.in
+++ b/units/systemd-update-utmp-runlevel.service.in
@@ -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
diff --git a/units/systemd-update-utmp-shutdown.service.in b/units/systemd-update-utmp-shutdown.service.in
index f5d1342243..4c48c8b53a 100644
--- a/units/systemd-update-utmp-shutdown.service.in
+++ b/units/systemd-update-utmp-shutdown.service.in
@@ -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]