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]
|
[Unit]
|
||||||
After=syslog.target network-online.target
|
After=syslog.target network-online.target
|
||||||
|
Wants=wg-quick.target
|
||||||
ConditionPathIsDirectory=/etc/wireguard
|
ConditionPathIsDirectory=/etc/wireguard
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
Type=forking
|
||||||
WorkingDirectory={{APP_ROOT}}
|
PIDFile=/opt/wgdashboard/src/gunicorn.pid
|
||||||
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}/dashboard.py
|
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
|
PrivateTmp=yes
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user