From 70db8e3a0b68cf2eab500592ba16b2acf0737331 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Feb 2011 19:34:24 +0100 Subject: [PATCH] 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 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 -- 2.39.5