mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
增加 systemd 守护进程模板
This commit is contained in:
parent
cff0ba7cc8
commit
eb7d5a252f
11
FastTunnel.Server/fasttunnel.service
Normal file
11
FastTunnel.Server/fasttunnel.service
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user