Set KillMode=mixed in the systemd service file.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 28 May 2017 10:42:25 +0000 (12:42 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 28 May 2017 10:42:25 +0000 (12:42 +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.

distro/tinc@.service

index c823fa5a9b814fba5340a5a313b25d99eba96fa6..58694429d1f4b55021c91d92fa52dc2d453a8647 100644 (file)
@@ -8,6 +8,7 @@ Type=simple
 WorkingDirectory=/etc/tinc/%i
 ExecStart=/usr/sbin/tincd -n %i -D
 ExecReload=/usr/sbin/tincd -n %i -kHUP
+KillMode=mixed
 TimeoutStopSec=5
 Restart=always
 RestartSec=60