rathole/examples/systemd/ratholec@.service

18 lines
323 B
SYSTEMD
Raw Normal View History

2021-12-25 09:40:47 +01:00
[Unit]
Description=Rathole Client Service
After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5s
LimitNOFILE=1048576
# with root
ExecStart=/usr/bin/rathole -c /etc/rathole/%i.toml
# without root
# ExecStart=%h/.local/bin/rathole -c %h/.local/etc/rathole/%i.toml
2021-12-25 09:40:47 +01:00
[Install]
WantedBy=multi-user.target