mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
* clean up pidfile and reloads * reduce log spam during graceful shutdowns * hold an exclusive advisory lock on the pidfile * do systemd reloads with the pidfile rather than $MAINPID * prioritize signals over internal restarts
16 lines
406 B
Plaintext
16 lines
406 B
Plaintext
[Unit]
|
|
Description=Teleport Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=on-failure
|
|
EnvironmentFile=-/custom/env/dir/teleport
|
|
ExecStart=/custom/install/dir/teleport start --config /etc/teleport.yaml --pid-file=/custom/pid/dir/teleport.pid
|
|
ExecReload=pkill -HUP -L -F "/custom/pid/dir/teleport.pid"
|
|
PIDFile=/custom/pid/dir/teleport.pid
|
|
LimitNOFILE=16384
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|