mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-07 09:50:30 +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