mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-06 16:00:28 +01:00
Update wg-dashboard.service
This commit is contained in:
parent
955839d513
commit
55f55820c5
@ -1,14 +1,18 @@
|
||||
[Unit]
|
||||
After=syslog.target network-online.target
|
||||
Wants=wg-quick.target
|
||||
ConditionPathIsDirectory=/etc/wireguard
|
||||
|
||||
[Service]
|
||||
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
||||
WorkingDirectory={{APP_ROOT}}
|
||||
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}/dashboard.py
|
||||
Type=forking
|
||||
PIDFile=/opt/wgdashboard/src/gunicorn.pid
|
||||
WorkingDirectory=/opt/wgdashboard/src
|
||||
ExecStart=/opt/wgdashboard/src/wgd.sh start
|
||||
ExecStop=/opt/wgdashboard/src/wgd.sh stop
|
||||
ExecReload=/opt/wgdashboard/src/wgd.sh restart
|
||||
TimeoutSec=120
|
||||
PrivateTmp=yes
|
||||
Restart=always
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user