From: Guus Sliepen Date: Sun, 28 May 2017 10:48:32 +0000 (+0200) Subject: Set KillMode=mixed in the systemd service file. X-Git-Tag: release-1.1pre15~13 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=93584bc1cad7c7cc9c95859a8cde548bc18b6fa8;hp=970799aa3406c22a575f665d3964c15d7c9ab555 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. --- diff --git a/systemd/tinc@.service b/systemd/tinc@.service index 78ef25b..d1f711d 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