chiark / gitweb /
rescue: make 'systemctl default' fail if there is already something running when...
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2011 18:34:24 +0000 (19:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2011 18:34:38 +0000 (19:34 +0100)
units/rescue.service.m4

index 6e03c20..ba29f6e 100644 (file)
@@ -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