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