X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Frescue.service.m4;h=241c75071f635d42517ee8f830e7ec554388a62b;hb=ac1234459056864aeb04053fdfe9b0001fc32590;hp=6e03c20d80b8afaf6e2cef9918e4f05e4a9d58d5;hpb=e3aa71c38cbecb24e6333411ee19814796a5b1d0;p=elogind.git diff --git a/units/rescue.service.m4 b/units/rescue.service.m4 index 6e03c20d8..241c75071 100644 --- a/units/rescue.service.m4 +++ b/units/rescue.service.m4 @@ -17,15 +17,18 @@ 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 default +m4_ifdef(`TARGET_MANDRIVA', +`EnvironmentFile=/etc/sysconfig/init +ExecStart=-/bin/bash -c "exec ${SINGLE}"', +`ExecStart=-/sbin/sulogin')) +ExecStopPost=-/bin/systemctl --fail default StandardInput=tty-force -KillMode=process-group +KillMode=process # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly.