summaryrefslogtreecommitdiff
path: root/units/systemd-update-utmp-runlevel.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-16 00:19:03 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-16 00:19:03 +0200
commit3f92e4b4b61042391bd44de4dceb18177df0dd57 (patch)
tree8c4431d30f2d55c649e09cd579efa03241251330 /units/systemd-update-utmp-runlevel.service.in
parent154ff088d371bee5651eaa2bc9bde8a34c185656 (diff)
utmp: turn systemd-update-utmp-shutdown.service into a normal runtime service
With this change systemd-update-utmp-shutdown.service is replaced by systemd-update-utmp.service which is started at boot and stays around until shutdown. This allows us to properly order the unit against both /var/log and auditd. https://bugzilla.redhat.com/show_bug.cgi?id=853104 https://bugs.freedesktop.org/show_bug.cgi?id=64365
Diffstat (limited to 'units/systemd-update-utmp-runlevel.service.in')
-rw-r--r--units/systemd-update-utmp-runlevel.service.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in
index 27fae2cd0..99783e2e6 100644
--- a/units/systemd-update-utmp-runlevel.service.in
+++ b/units/systemd-update-utmp-runlevel.service.in
@@ -7,12 +7,14 @@
[Unit]
Description=Update UTMP about System Runlevel Changes
-Documentation=man:systemd-update-utmp-runlevel.service(8) man:utmp(5)
+Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
DefaultDependencies=no
RequiresMountsFor=/var/log/wtmp
-After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service
+Conflicts=shutdown.target
+Requisite=systemd-update-utmp.service
+After=systemd-update-utmp.service
After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
-Before=final.target
+Before=shutdown.target
[Service]
Type=oneshot