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