mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-07 00:10:13 +01:00
78ef870d91
A more automated approach
15 lines
304 B
Desktop File
15 lines
304 B
Desktop File
[Unit]
|
|
After=syslog.target network-online.target
|
|
ConditionPathIsDirectory=/etc/wireguard
|
|
|
|
[Service]
|
|
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
|
WorkingDirectory={{APP_ROOT}}
|
|
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}dashboard.py
|
|
PrivateTmp=yes
|
|
Restart=always
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|