From 93584bc1cad7c7cc9c95859a8cde548bc18b6fa8 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 28 May 2017 12:48:32 +0200 Subject: [PATCH] Set KillMode=mixed in the systemd service file. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/tinc@.service b/systemd/tinc@.service index 78ef25b1..d1f711d4 100644 --- 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 -- 2.20.1