From 70db8e3a0b68cf2eab500592ba16b2acf0737331 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Feb 2011 19:34:24 +0100 Subject: rescue: make 'systemctl default' fail if there is already something running when the shell exited --- units/rescue.service.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/rescue.service.m4 b/units/rescue.service.m4 index 6e03c20d80..ba29f6e6e6 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 -- cgit v1.2.3-54-g00ecf