Files
teleport/lib/config/testdata/TestWriteSystemdUnitFile.golden
T
Edoardo Spadolini bd47f0e02a Improve Teleport reload behavior (#37773)
* 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
2024-02-13 15:27:54 +00:00

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