mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-15 23:56:52 +08:00
add systemd service
This commit is contained in:
13
systemd/anylink.service
Normal file
13
systemd/anylink.service
Normal 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
|
Reference in New Issue
Block a user