summarylogtreecommitdiffstats
path: root/teleport.service
diff options
context:
space:
mode:
authorEmanuele 'Lele' Calo2019-09-13 03:17:12 +0200
committerEmanuele 'Lele' Calo2019-09-13 03:17:12 +0200
commita29ce8456e13836d684fd17ef8bd416a82cfb657 (patch)
tree19f1b6bbf6290d175eb71e5008d15e12bc9c2c76 /teleport.service
parent1b8eaf12a81b876d4becf1318ad89db5bbafcbb2 (diff)
downloadaur-a29ce8456e13836d684fd17ef8bd416a82cfb657.tar.gz
Added teleport.yaml configuration + fixed .service
Diffstat (limited to 'teleport.service')
-rw-r--r--teleport.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/teleport.service b/teleport.service
index 98a0b9fddbcf..26f0e1bdc0cd 100644
--- a/teleport.service
+++ b/teleport.service
@@ -4,8 +4,10 @@ After=network.target
[Service]
Type=simple
-Restart=always
-ExecStart=/usr/bin/teleport start
+Restart=on-failure
+ExecStart=/usr/local/bin/teleport start --config=/etc/teleport.yaml --pid-file=/var/run/teleport.pid
+ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/var/run/teleport.pid
[Install]
WantedBy=multi-user.target