2021-08-04 06:45:40 +08:00
|
|
|
[Unit]
|
2021-11-25 22:33:06 +08:00
|
|
|
After=syslog.target network-online.target
|
2024-08-11 23:02:08 +08:00
|
|
|
Wants=wg-quick.target
|
2021-11-25 22:33:06 +08:00
|
|
|
ConditionPathIsDirectory=/etc/wireguard
|
2021-08-04 06:45:40 +08:00
|
|
|
|
|
|
|
[Service]
|
2024-08-11 23:02:08 +08:00
|
|
|
Type=forking
|
2024-08-15 10:45:36 +08: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 23:02:08 +08:00
|
|
|
TimeoutSec=120
|
2021-11-25 22:33:06 +08:00
|
|
|
PrivateTmp=yes
|
2021-08-04 06:45:40 +08:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
2024-08-05 03:29:07 +08:00
|
|
|
WantedBy=multi-user.target
|