X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Frescue.service.m4.in;h=ef5436960fcaf04ea9902498e2cba0892ad1e70c;hb=b7e6c03d3bb4e571ad3391862e3f5e4d6bb0cfbb;hp=fb14baf195b578c7302bbb3ea3de016dd399b270;hpb=95ec8647c70b2c1fe816301aca2143d587a60c82;p=elogind.git diff --git a/units/rescue.service.m4.in b/units/rescue.service.m4.in index fb14baf19..ef5436960 100644 --- a/units/rescue.service.m4.in +++ b/units/rescue.service.m4.in @@ -18,23 +18,11 @@ Environment=HOME=/root WorkingDirectory=/root ExecStartPre=-/bin/plymouth quit ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl -xb" to view system logs. Type "systemctl reboot" to reboot.' -m4_ifdef(`TARGET_FEDORA', -`EnvironmentFile=/etc/sysconfig/init -ExecStart=-/bin/bash -c "exec ${SINGLE}"', -m4_ifdef(`TARGET_MANDRIVA', -`EnvironmentFile=/etc/sysconfig/init -ExecStart=-/bin/bash -c "exec ${SINGLE}"', -m4_ifdef(`TARGET_MAGEIA', -`EnvironmentFile=/etc/sysconfig/init -ExecStart=-/bin/bash -c "exec ${SINGLE}"', -`ExecStart=-/sbin/sulogin'))) -ExecStopPost=-@SYSTEMCTL@ --fail --no-block default +ExecStart=-/bin/sh -c "/sbin/sulogin; @SYSTEMCTL@ --fail --no-block default" Type=idle StandardInput=tty-force StandardOutput=inherit StandardError=inherit KillMode=process - -# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash -# terminates cleanly. -KillSignal=SIGHUP +IgnoreSIGPIPE=no +SendSIGHUP=yes