X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Frescue.service.m4;h=d2fd582e86e69a7203e46e3ead9a90589d91100d;hp=2a0d3280ecebd729bd57ec0b76886e6cca36c9c7;hb=c375a7f750d0ac3ab130b8d84ebbcbbf32b96c72;hpb=be12dd0cb89214b3b0dbffe70dd47d1db2c5d3c2 diff --git a/units/rescue.service.m4 b/units/rescue.service.m4 index 2a0d3280e..d2fd582e8 100644 --- a/units/rescue.service.m4 +++ b/units/rescue.service.m4 @@ -22,10 +22,16 @@ ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D t m4_ifdef(`TARGET_FEDORA', `EnvironmentFile=/etc/sysconfig/init ExecStart=-/bin/bash -c "exec ${SINGLE}"', -`ExecStart=-/sbin/sulogin') -ExecStopPost=-/bin/systemctl --fail default +m4_ifdef(`TARGET_MANDRIVA', +`EnvironmentFile=/etc/sysconfig/init +ExecStart=-/bin/bash -c "exec ${SINGLE}"', +`ExecStart=-/sbin/sulogin' +m4_ifdef(`TARGET_MEEGO', +`EnvironmentFile=/etc/sysconfig/init +ExecStart=-/bin/bash -c "exec ${SINGLE}"',))) +ExecStopPost=-/bin/systemctl --fail --no-block default StandardInput=tty-force -KillMode=process-group +KillMode=process # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly.