1
0
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:
Markus Neubauer 2021-11-25 15:33:06 +01:00 committed by Donald Cheng Hong Zou
parent bc19d82aed
commit 78ef870d91

View File

@ -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