1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-09-28 15:50:12 +02:00
WGDashboard/src/wg-dashboard.service
2022-02-04 21:36:46 -05:00

15 lines
305 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