chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
420a016
)
units: kill the emergency shell with SIGHUP
author
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Jul 2010 02:21:53 +0000
(
04:21
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Jul 2010 02:21:53 +0000
(
04:21
+0200)
units/emergency.service
patch
|
blob
|
history
diff --git
a/units/emergency.service
b/units/emergency.service
index 83b7d72b7b7da7af76018ce27efe00500d50ac59..8745d101c7f78827fc5cbabbb1552d5a55937426 100644
(file)
--- a/
units/emergency.service
+++ b/
units/emergency.service
@@
-17,3
+17,7
@@
StandardInput=tty
Restart=restart-always
RestartSec=0
KillMode=process-group
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)