mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-12-26 01:23:50 +08:00
2
Installing as a systemd service
Eugene edited this page 2022-06-24 14:44:49 +02:00
To add Warpgate to systemd and have it start automatically, run:
cat <<EOF > /etc/systemd/system/warpgate.service
[Unit]
Description=Warpgate
After=network.target
StartLimitIntervalSec=0
[Service]
Type=notify
Restart=always
RestartSec=5
ExecStart=/usr/bin/warpgate --config /etc/warpgate.yaml run
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable --now warpgate