projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
970799a
)
Set KillMode=mixed in the systemd service file.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 28 May 2017 10:48:32 +0000
(12:48 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 28 May 2017 10:48:32 +0000
(12:48 +0200)
This ensures only the main process is sent the SIGTERM, and not anything
else that might have started in the same control group, including the
tinc-down script.
Closes #145 on GitHub.
systemd/tinc@.service
patch
|
blob
|
history
diff --git
a/systemd/tinc@.service
b/systemd/tinc@.service
index 78ef25b13b1a29cd15dd38db2ee5d8d9cc38540f..d1f711d4841f81fe61f7d920c1e44b7b38ad0fde 100644
(file)
--- a/
systemd/tinc@.service
+++ b/
systemd/tinc@.service
@@
-11,6
+11,7
@@
Type=simple
WorkingDirectory=/etc/tinc/%i
ExecStart=/usr/sbin/tincd -n %i -D
ExecReload=/usr/sbin/tinc -n %i reload
+KillMode=mixed
Restart=on-failure
RestartSec=5
TimeoutStopSec=5