mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-10 17:04:06 +08:00
Update wg-dashboard.service
A more automated approach
This commit is contained in:
parent
bc19d82aed
commit
78ef870d91
1 changed files with 7 additions and 4 deletions
|
@ -1,11 +1,14 @@
|
|||
[Unit]
|
||||
After=netword.service
|
||||
After=syslog.target network-online.target
|
||||
ConditionPathIsDirectory=/etc/wireguard
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=<your dashboard directory full path here>
|
||||
ExecStart=/usr/bin/python3 <your dashboard directory full path here>dashboard.py
|
||||
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
||||
WorkingDirectory={{APP_ROOT}}
|
||||
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}dashboard.py
|
||||
PrivateTmp=yes
|
||||
Restart=always
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in a new issue