X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Femergency.service;h=4847f4f0c6ef243c878fa6e635cb8976911becf3;hp=cb28a783852a172bbe592a8ed7175b5c7fe669ed;hb=822b18599d1c9465449c7111fe7e7b86fbf44a57;hpb=be12dd0cb89214b3b0dbffe70dd47d1db2c5d3c2 diff --git a/units/emergency.service b/units/emergency.service index cb28a7838..4847f4f0c 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -19,9 +19,11 @@ WorkingDirectory=/root ExecStartPre=-/bin/plymouth quit ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.' ExecStart=-/sbin/sulogin -ExecStopPost=/bin/systemctl --fail default +ExecStopPost=/bin/systemctl --fail --no-block default StandardInput=tty-force -KillMode=process-group +StandardOutput=inherit +StandardError=inherit +KillMode=process # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly.