From 319346674c5665af895e854e1754eed4b5e36f42 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Jul 2010 04:21:53 +0200 Subject: units: kill the emergency shell with SIGHUP --- units/emergency.service | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'units/emergency.service') diff --git a/units/emergency.service b/units/emergency.service index 83b7d72b7b..8745d101c7 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) -- cgit v1.2.3-54-g00ecf