1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 23:27:45 +01:00
WGDashboard/src/wg-dashboard.service

14 lines
304 B
SYSTEMD
Raw Normal View History

2021-08-04 00:45:40 +02:00
[Unit]
After=syslog.target network-online.target
ConditionPathIsDirectory=/etc/wireguard
2021-08-04 00:45:40 +02:00
[Service]
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
WorkingDirectory={{APP_ROOT}}
2021-12-21 19:52:08 +01:00
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}/dashboard.py
PrivateTmp=yes
2021-08-04 00:45:40 +02:00
Restart=always
[Install]
WantedBy=multi-user.target