From: Lennart Poettering Date: Sat, 14 Aug 2010 17:25:12 +0000 (+0200) Subject: units: write utmp record before we kill all processes X-Git-Tag: v8~88 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0dcc78574905ca0e31694238662002bd36ca65d4 units: write utmp record before we kill all processes --- diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in index 90bb9379e..0b4c83dd8 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 f5d134224..4c48c8b53 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]