From: Lennart Poettering Date: Mon, 13 Sep 2010 23:07:06 +0000 (+0200) Subject: units: make sure the file system is writable before we write utmp data X-Git-Tag: v10~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c4e3e1a9b5d4ffc13f61cc6510d67deb702fb6b;p=systemd units: make sure the file system is writable before we write utmp data --- diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in index 724e4a4c..0cbde37c 100644 --- a/units/systemd-update-utmp-runlevel.service.in +++ b/units/systemd-update-utmp-runlevel.service.in @@ -8,8 +8,9 @@ [Unit] Description=Notify Audit System and Update UTMP about System Runlevel Changes DefaultDependencies=no +Wants=local-fs.target sysinit.target +After=local-fs.target sysinit.target auditd.service runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target Before=poweroff.service reboot.service halt.service killall.service -After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target auditd.service [Service] Type=oneshot diff --git a/units/systemd-update-utmp-shutdown.service.in b/units/systemd-update-utmp-shutdown.service.in index 2042b71c..0b4fe928 100644 --- a/units/systemd-update-utmp-shutdown.service.in +++ b/units/systemd-update-utmp-shutdown.service.in @@ -8,8 +8,9 @@ [Unit] Description=Notify Audit System and Update UTMP about System Shutdown DefaultDependencies=no +Wants=local-fs.target sysinit.target +After=local-fs.target sysinit.target auditd.service systemd-update-utmp-runlevel.service Before=poweroff.service reboot.service halt.service killall.service -After=systemd-update-utmp-runlevel.service [Service] Type=oneshot