]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Stop syslog.socket when entering emergency mode (#3130)
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 27 Apr 2016 08:34:24 +0000 (10:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Apr 2016 08:34:24 +0000 (10:34 +0200)
When enabling ForwardToSyslog=yes, the syslog.socket is active when entering
emergency mode. Any log message then triggers the start of rsyslog.service (or
other implementation) along with its dependencies such as local-fs.target and
sysinit.target. As these might fail themselves (e. g. faulty /etc/fstab), this
breaks the emergency mode.

This causes syslog.socket to fail with "Failed to queue service startup job:
Transition is destructive".

Add Conflicts=syslog.socket to emergency.service to make sure the socket is
stopped when emergency.service is started.

Fixes #266

units/emergency.service.in

index fb390eacfedfee931ea1ad863b81268fe4e1e81b..0de16f24e89ee2f14a953a65a02c0a080866aebe 100644 (file)
@@ -11,6 +11,7 @@ Documentation=man:sulogin(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
 Conflicts=rescue.service
+Conflicts=syslog.socket
 Before=shutdown.target
 
 [Service]