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
1 changed files with 4 additions and 0 deletions

View File

@ -17,3 +17,7 @@ StandardInput=tty
Restart=restart-always Restart=restart-always
RestartSec=0 RestartSec=0
KillMode=process-group KillMode=process-group
# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash
# terminates cleanly.
ExecStop=/bin/kill -HUP $(MAINPID)