diff options
-rw-r--r-- | units/emergency.service.in | 1 | ||||
-rw-r--r-- | units/syslog.socket | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/units/emergency.service.in b/units/emergency.service.in index c60fd6e256..ddf7d4cbe2 100644 --- a/units/emergency.service.in +++ b/units/emergency.service.in @@ -11,7 +11,6 @@ Documentation=man:sulogin(8) DefaultDependencies=no Conflicts=shutdown.target Conflicts=rescue.service -Conflicts=syslog.socket Before=shutdown.target [Service] diff --git a/units/syslog.socket b/units/syslog.socket index d3987cb9a8..372e8fcd45 100644 --- a/units/syslog.socket +++ b/units/syslog.socket @@ -10,10 +10,14 @@ Description=Syslog Socket Documentation=man:systemd.special(7) Documentation=https://www.freedesktop.org/wiki/Software/systemd/syslog DefaultDependencies=no -Before=sockets.target shutdown.target +Before=sockets.target # Don't allow logging until the very end Conflicts=shutdown.target +Before=shutdown.target + +# Don't try to activate syslog.service if sysinit.target has failed. +Conflicts=emergency.service [Socket] ListenDatagram=/run/systemd/journal/syslog |