X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Frescue.service.m4.in;h=552ef8981b5870c81bd2dc9652eba3c12652c55c;hp=fb14baf195b578c7302bbb3ea3de016dd399b270;hb=497d1986c13032f1ef8f4592bb7ed8d3aa321a47;hpb=95ec8647c70b2c1fe816301aca2143d587a60c82 diff --git a/units/rescue.service.m4.in b/units/rescue.service.m4.in index fb14baf19..552ef8981 100644 --- a/units/rescue.service.m4.in +++ b/units/rescue.service.m4.in @@ -18,23 +18,12 @@ 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'))) +ExecStart=-/sbin/sulogin ExecStopPost=-@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