summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-08 04:21:53 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-08 04:21:53 +0200
commit319346674c5665af895e854e1754eed4b5e36f42 (patch)
treec11bc05f45da2b323d69bb6fd13a8dad79276054
parent420a0166a2f02939de22569b37168395772a5be9 (diff)
units: kill the emergency shell with SIGHUP
-rw-r--r--units/emergency.service4
1 files changed, 4 insertions, 0 deletions
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)