From: Lennart Poettering Date: Wed, 16 Feb 2011 18:34:24 +0000 (+0100) Subject: rescue: make 'systemctl default' fail if there is already something running when... X-Git-Tag: v18~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70db8e3a0b68cf2eab500592ba16b2acf0737331;p=systemd rescue: make 'systemctl default' fail if there is already something running when the shell exited --- diff --git a/units/rescue.service.m4 b/units/rescue.service.m4 index 6e03c20d..ba29f6e6 100644 --- a/units/rescue.service.m4 +++ b/units/rescue.service.m4 @@ -23,7 +23,7 @@ m4_ifdef(`TARGET_FEDORA', `EnvironmentFile=/etc/sysconfig/init ExecStart=-/bin/bash -c "exec ${SINGLE}"', `ExecStart=-/sbin/sulogin') -ExecStopPost=/bin/systemctl default +ExecStopPost=-/bin/systemctl --fail default StandardInput=tty-force KillMode=process-group