Files
teleport/lib/config/systemd/testdata/TestWriteUnitFile.golden
Stephen Levine 5ea0f2a214 [teleport-update] Use teleport config package to generate systemd services (#55499)
* Refactor systemd services

* cleanup

* use FIPS in config test

* cleanup

* prevent large package import

* rename testdata file
2025-07-06 00:33:57 +00:00

18 lines
482 B
Plaintext

[Unit]
Description=Teleport Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
EnvironmentFile=-/custom/env/dir/teleport
ExecStart=/custom/install/dir/teleport start --fips --config /etc/teleport.yaml --pid-file=/custom/pid/dir/teleport.pid
# systemd before 239 needs an absolute path
ExecReload=/bin/sh -c "exec pkill -HUP -L -F /custom/pid/dir/teleport.pid"
PIDFile=/custom/pid/dir/teleport.pid
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target