From: Lennart Poettering Date: Thu, 14 Apr 2011 00:57:13 +0000 (+0200) Subject: units: never pull in sysinit from utmp, so that we can shutdown from emergency mode... X-Git-Tag: v25~46 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=cfcab435088205b520d244e6111e33b98579181d units: never pull in sysinit from utmp, so that we can shutdown from emergency mode without pulling in sysinit --- diff --git a/units/syslog.target b/units/syslog.target index 8b1626ed5..825b26e7b 100644 --- a/units/syslog.target +++ b/units/syslog.target @@ -12,3 +12,8 @@ [Unit] Description=Syslog + +# Avoid that we conflict with shutdown.target, so that we can stay +# until the very end and do not cancel shutdown.target if we should +# hapen to be activated very late. +DefaultDependencies=no diff --git a/units/systemd-update-utmp-runlevel.service.in b/units/systemd-update-utmp-runlevel.service.in index 865a1535d..614c759a6 100644 --- a/units/systemd-update-utmp-runlevel.service.in +++ b/units/systemd-update-utmp-runlevel.service.in @@ -8,7 +8,6 @@ [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 systemd-tmpfiles-setup.service Before=poweroff.service reboot.service halt.service diff --git a/units/systemd-update-utmp-shutdown.service.in b/units/systemd-update-utmp-shutdown.service.in index c30d86d24..e7c3c04a0 100644 --- a/units/systemd-update-utmp-shutdown.service.in +++ b/units/systemd-update-utmp-shutdown.service.in @@ -8,7 +8,6 @@ [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