rescue: make 'systemctl default' fail if there is already something running when the shell exited

This commit is contained in:
Lennart Poettering 2011-02-16 19:34:24 +01:00
parent da71f23cda
commit 70db8e3a0b

View 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