summaryrefslogtreecommitdiff
path: root/units/systemd-update-utmp-runlevel.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'units/systemd-update-utmp-runlevel.service.in')
-rw-r--r--units/systemd-update-utmp-runlevel.service.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in
index 6666dbd790..7b6fbadf12 100644
--- a/units/systemd-update-utmp-runlevel.service.in
+++ b/units/systemd-update-utmp-runlevel.service.in
@@ -9,8 +9,10 @@
Description=Update UTMP about System Runlevel Changes
Documentation=man:utmp(5)
DefaultDependencies=no
-After=local-fs.target sysinit.target auditd.service runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target systemd-tmpfiles-setup.service
-Before=poweroff.service reboot.service halt.service
+RequiresMountsFor=/var/log/wtmp
+After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service
+After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+Before=final.target
[Service]
Type=oneshot