2021-08-04 00:45:40 +02:00
|
|
|
[Unit]
|
2021-11-25 15:33:06 +01:00
|
|
|
After=syslog.target network-online.target
|
2024-08-11 17:02:08 +02:00
|
|
|
Wants=wg-quick.target
|
2021-11-25 15:33:06 +01:00
|
|
|
ConditionPathIsDirectory=/etc/wireguard
|
2021-08-04 00:45:40 +02:00
|
|
|
|
|
|
|
[Service]
|
2024-08-11 17:02:08 +02:00
|
|
|
Type=forking
|
|
|
|
PIDFile=/opt/wgdashboard/src/gunicorn.pid
|
|
|
|
WorkingDirectory=/opt/wgdashboard/src
|
|
|
|
ExecStart=/opt/wgdashboard/src/wgd.sh start
|
|
|
|
ExecStop=/opt/wgdashboard/src/wgd.sh stop
|
|
|
|
ExecReload=/opt/wgdashboard/src/wgd.sh restart
|
|
|
|
TimeoutSec=120
|
2021-11-25 15:33:06 +01:00
|
|
|
PrivateTmp=yes
|
2021-08-04 00:45:40 +02:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
2024-08-04 21:29:07 +02:00
|
|
|
WantedBy=multi-user.target
|