teleport/vagrant/teleport.service
Andrew Lytvynov 540f77526b Use tighter permissions for /var/lib/teleport everywhere
Automatic creation of the data folder in teleport does the right thing -
only make it accessible to owner. All other scripts and docs should do
the same.

Updates #3701
2020-05-15 16:45:56 +00:00

18 lines
348 B
Desktop File

[Unit]
Description=Teleport SSH server
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
ExecStartPre=/bin/mkdir -p -m0700 /var/lib/teleport
ExecStart=/usr/local/bin/teleport start -c /opt/teleport/teleport.yaml
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
[Install]
WantedBy=multi-user.target