add systemd service

This commit is contained in:
yii 2021-03-01 17:12:54 +08:00
parent 9e0da33c6a
commit 879b9114ac
1 changed files with 13 additions and 0 deletions

13
systemd/anylink.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=VPN Server Service
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory= /usr/local/anylink-deploy
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/anylink-deploy/anylink -conf="conf/server.toml"
[Install]
WantedBy=multi-user.target