mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Update wg-dashboard.service
A more automated approach
This commit is contained in:
parent
bc19d82aed
commit
78ef870d91
@ -1,11 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
After=netword.service
|
After=syslog.target network-online.target
|
||||||
|
ConditionPathIsDirectory=/etc/wireguard
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=<your dashboard directory full path here>
|
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
||||||
ExecStart=/usr/bin/python3 <your dashboard directory full path here>dashboard.py
|
WorkingDirectory={{APP_ROOT}}
|
||||||
|
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}dashboard.py
|
||||||
|
PrivateTmp=yes
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user