|
|
|
|
@ -933,9 +933,9 @@ then
|
|
|
|
|
sudo sed -i "s/ExecStart=.*/ExecStart=php -S 0.0.0.0:$variable1 -t \/var\/www\/fdmr\//g" /lib/systemd/system/http.server-fdmr.service &&
|
|
|
|
|
sudo sed -i "s/ExecStart=.*/ExecStart=php -S 0.0.0.0:$variable1 -t \/var\/www\/fdmr2\//g" /lib/systemd/system/http.server-fdmr2.service &&
|
|
|
|
|
systemctl daemon-reload &&
|
|
|
|
|
systemctl start fdmr_mon.service
|
|
|
|
|
systemctl start proxy.service
|
|
|
|
|
systemctl start http.server-fdmr.service
|
|
|
|
|
systemctl restart fdmr_mon.service
|
|
|
|
|
systemctl restart proxy.service
|
|
|
|
|
systemctl restart http.server-fdmr.service
|
|
|
|
|
sh /opt/extra-2.sh
|
|
|
|
|
fi
|
|
|
|
|
cronedit.sh '*/5 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/graph.sh' add &&
|
|
|
|
|
@ -1101,12 +1101,20 @@ if ! systemctl status proxy.service | grep "service; enabled;" >/dev/null 2>&1;
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
#####################################
|
|
|
|
|
if sudo systemctl status http.server-fdmr2.service |grep "service; enabled;" >/dev/null 2>&1
|
|
|
|
|
then
|
|
|
|
|
systemctl start fdmr_mon2.service
|
|
|
|
|
systemctl start http.server-fdmr2.service
|
|
|
|
|
systemctl start proxy.service
|
|
|
|
|
sh /opt/extra-3.sh
|
|
|
|
|
if sudo systemctl status http.server-fdmr.service |grep "service; enabled;" >/dev/null 2>&1
|
|
|
|
|
then
|
|
|
|
|
variable1=$(grep "Web-Dashboar-Port:" /opt/wdp | grep -Eo '[A.0-9]{1,9}') &&
|
|
|
|
|
if [ -z "$variable1" ]
|
|
|
|
|
then variable1=80
|
|
|
|
|
|
|
|
|
|
fi &&
|
|
|
|
|
sudo sed -i "s/ExecStart=.*/ExecStart=php -S 0.0.0.0:$variable1 -t \/var\/www\/fdmr\//g" /lib/systemd/system/http.server-fdmr.service &&
|
|
|
|
|
sudo sed -i "s/ExecStart=.*/ExecStart=php -S 0.0.0.0:$variable1 -t \/var\/www\/fdmr2\//g" /lib/systemd/system/http.server-fdmr2.service &&
|
|
|
|
|
systemctl daemon-reload &&
|
|
|
|
|
systemctl restart fdmr_mon2.service
|
|
|
|
|
systemctl restart proxy.service
|
|
|
|
|
systemctl restart http.server-fdmr2.service
|
|
|
|
|
sh /opt/extra-2.sh
|
|
|
|
|
fi
|
|
|
|
|
cronedit.sh '*/5 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/graph.sh' remove &&
|
|
|
|
|
cronedit.sh '*/2 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/cpu.sh' remove &&
|
|
|
|
|
|