From 879b9114ac1e3a9c3cb6a717b6b0860e6e49f6fb Mon Sep 17 00:00:00 2001
From: yii <yii@yiideMacBook-Pro.local>
Date: Mon, 1 Mar 2021 17:12:54 +0800
Subject: [PATCH] add systemd service

---
 systemd/anylink.service | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 systemd/anylink.service

diff --git a/systemd/anylink.service b/systemd/anylink.service
new file mode 100644
index 0000000..29e6661
--- /dev/null
+++ b/systemd/anylink.service
@@ -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