mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-06 16:00:28 +01:00
18 lines
500 B
Desktop File
18 lines
500 B
Desktop File
[Unit]
|
|
After=syslog.target network-online.target
|
|
Wants=wg-quick.target
|
|
ConditionPathIsDirectory=/etc/wireguard
|
|
|
|
[Service]
|
|
Type=forking
|
|
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
|
|
TimeoutSec=120
|
|
PrivateTmp=yes
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |