X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Frescue.service.m4;h=d2fd582e86e69a7203e46e3ead9a90589d91100d;hp=ba29f6e6e6f14b4ed2577b33cedee303c2bcdf48;hb=6b3fd98f7a8eb4adbc134797fb2e81a643004e0d;hpb=70db8e3a0b68cf2eab500592ba16b2acf0737331 diff --git a/units/rescue.service.m4 b/units/rescue.service.m4 index ba29f6e6e..d2fd582e8 100644 --- a/units/rescue.service.m4 +++ b/units/rescue.service.m4 @@ -17,15 +17,21 @@ Before=shutdown.target [Service] Environment=HOME=/root WorkingDirectory=/root -ExecStartPre=-/bin/plymouth --hide-splash +ExecStartPre=-/bin/plymouth quit ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.' 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.