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

18 lines
500 B
SYSTEMD
Raw Normal View History

2021-08-04 00:45:40 +02:00
[Unit]
After=syslog.target network-online.target
2024-08-11 17:02:08 +02:00
Wants=wg-quick.target
ConditionPathIsDirectory=/etc/wireguard
2021-08-04 00:45:40 +02:00
[Service]
2024-08-11 17:02:08 +02:00
Type=forking
2024-08-15 04:45:36 +02:00
PIDFile=<absolute_path_of_wgdashboard_src>/gunicorn.pid
WorkingDirectory=<absolute_path_of_wgdashboard_src>
ExecStart=<absolute_path_of_wgdashboard_src>/wgd.sh start
ExecStop=<absolute_path_of_wgdashboard_src>/wgd.sh stop
ExecReload=<absolute_path_of_wgdashboard_src>/wgd.sh restart
2024-08-11 17:02:08 +02:00
TimeoutSec=120
PrivateTmp=yes
2021-08-04 00:45:40 +02:00
Restart=always
[Install]
WantedBy=multi-user.target