summarylogtreecommitdiffstats
path: root/teleport.service
diff options
context:
space:
mode:
Diffstat (limited to 'teleport.service')
-rw-r--r--teleport.service8
1 files changed, 6 insertions, 2 deletions
diff --git a/teleport.service b/teleport.service
index 98a0b9fddbcf..8f119e181f6e 100644
--- a/teleport.service
+++ b/teleport.service
@@ -4,8 +4,12 @@ After=network.target
[Service]
Type=simple
-Restart=always
-ExecStart=/usr/bin/teleport start
+Restart=on-failure
+EnvironmentFile=-/etc/default/teleport
+ExecStart=/usr/bin/teleport start --pid-file=/run/teleport.pid --config=/etc/teleport.yaml
+ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/run/teleport.pid
+LimitNOFILE=8192
[Install]
WantedBy=multi-user.target