From 424eaa08547df703408f42f2e8a7c117a76bc959 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sat, 22 Sep 2018 16:56:33 -0600 Subject: [PATCH] Tell systemd to kill only the teleport process This leaves subprocesses created by Teleport sessions alone when restarting teleport.service Fixes #8 --- templates/teleport.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/teleport.service.j2 b/templates/teleport.service.j2 index 8bc2d03..5b852bd 100644 --- a/templates/teleport.service.j2 +++ b/templates/teleport.service.j2 @@ -6,6 +6,7 @@ After=network.target Type=simple Restart=always ExecStart=/usr/local/bin/teleport start --config={{ teleport_config_path }} {{ teleport_opts | default('') }} +KillMode=process [Install] WantedBy=multi-user.target