]> err.no Git - systemd/commitdiff
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 6e03c20d80b8afaf6e2cef9918e4f05e4a9d58d5..ba29f6e6e6f14b4ed2577b33cedee303c2bcdf48 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