X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Frescue.service.m4.in;h=ef5436960fcaf04ea9902498e2cba0892ad1e70c;hp=269797a12ebfb6bd3a910a45f4ec3d89cdfc0fba;hb=d3381512282f2ca1c7669f77fb736a90fdce6982;hpb=7f0086f8c9307a9a62f31a4aa5c8d3de74abd06b diff --git a/units/rescue.service.m4.in b/units/rescue.service.m4.in index 269797a12..ef5436960 100644 --- a/units/rescue.service.m4.in +++ b/units/rescue.service.m4.in @@ -18,14 +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.' -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