Merge pull request #7 from xbclub/master

add systemd service
This commit is contained in:
bjdgyc 2021-03-01 17:31:38 +08:00 committed by GitHub
commit dd1eae5d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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