units: kill the emergency shell with SIGHUP
This commit is contained in:
parent
420a0166a2
commit
319346674c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue