Update alpine-wireguard-install.sh
This commit is contained in:
parent
e659b4495a
commit
cf3601b4ab
@ -76,9 +76,19 @@ stderr_logfile=/var/log/wg-dashboard.err.log
|
|||||||
stdout_logfile=/var/log/wg-dashboard.out.log
|
stdout_logfile=/var/log/wg-dashboard.out.log
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rc-service supervisor restart
|
if [[ ! -f /etc/supervisord.conf ]]; then
|
||||||
rc-update add supervisor default
|
cat <<EOF > /etc/supervisord.conf
|
||||||
msg_ok "Created Supervisor Service for WGDashboard"
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
|
||||||
|
[include]
|
||||||
|
files = /etc/supervisord.d/*.ini
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Starting Supervisor Daemon"
|
||||||
|
nohup supervisord -c /etc/supervisord.conf &>/dev/null &
|
||||||
|
msg_ok "Started Supervisor Daemon"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user