units: kill the emergency shell with SIGHUP

This commit is contained in:
Lennart Poettering 2010-07-08 04:21:53 +02:00
parent 420a0166a2
commit 319346674c

View file

@ -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)