From eb7d5a252ffdd7c47d4a674980c7ba496d4182c5 Mon Sep 17 00:00:00 2001 From: SpringHgui <740360381@qq.com> Date: Mon, 16 Dec 2019 22:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20systemd=20=E5=AE=88?= =?UTF-8?q?=E6=8A=A4=E8=BF=9B=E7=A8=8B=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastTunnel.Server/fasttunnel.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 FastTunnel.Server/fasttunnel.service diff --git a/FastTunnel.Server/fasttunnel.service b/FastTunnel.Server/fasttunnel.service new file mode 100644 index 0000000..d93ff3d --- /dev/null +++ b/FastTunnel.Server/fasttunnel.service @@ -0,0 +1,11 @@ +[Unit] +Description=fasttunnel +[Service] +Type=simple +WorkingDirectory=/root/fasttunnel/ # 根据自己的目录进行修改,设置为程序根目录 +#Restart=on-failure +#RestartSec=10 +ExecStart=/usr/share/dotnet/dotnet FastTunnel.Server.dll +ExecReload=/usr/share/dotnet/dotnet FastTunnel.Server.dll +[Install] +WantedBy=multi-user.target \ No newline at end of file