X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Femergency.service;h=8745d101c7f78827fc5cbabbb1552d5a55937426;hp=83b7d72b7b7da7af76018ce27efe00500d50ac59;hb=319346674c5665af895e854e1754eed4b5e36f42;hpb=af65a09126e216d468592f069aee50dfe0382d3a diff --git a/units/emergency.service b/units/emergency.service index 83b7d72b7..8745d101c 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -17,3 +17,7 @@ StandardInput=tty Restart=restart-always RestartSec=0 KillMode=process-group + +# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash +# terminates cleanly. +ExecStop=/bin/kill -HUP $(MAINPID)