forked from wts/wts
添加systemd unit 文件
This commit is contained in:
25
wts.service
Normal file
25
wts.service
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Wechat Ticket System by ZSC Network Support
|
||||||
|
After=network.target network-online.target syslog.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
User=wts
|
||||||
|
Group=www-data
|
||||||
|
|
||||||
|
WorkingDirectory=/opt/wts/bin
|
||||||
|
|
||||||
|
ExecStart=/opt/wts/bin/wts -c /opt/wts/ProductionMain.yaml
|
||||||
|
|
||||||
|
EnvironmentFile=-/opt/wts/.env
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=25s
|
||||||
|
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
PrivateTmp=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user