|
|
|
@ -857,28 +857,62 @@ sudo nano /opt/FDMR-Monitor/fdmr-mon.cfg ;;
|
|
|
|
4)
|
|
|
|
4)
|
|
|
|
sudo nano /lib/systemd/system/http.server-fdmr.service && systemctl daemon-reload && systemctl restart http.server-fdmr.service ;;
|
|
|
|
sudo nano /lib/systemd/system/http.server-fdmr.service && systemctl daemon-reload && systemctl restart http.server-fdmr.service ;;
|
|
|
|
5)
|
|
|
|
5)
|
|
|
|
sudo systemctl start mariadb.service
|
|
|
|
if systemctl status mariadb.service |grep inactive >/dev/null 2>&1
|
|
|
|
sudo systemctl enable mariadb.service
|
|
|
|
then sudo systemctl start mariadb.service
|
|
|
|
sudo systemctl stop fdmrparrot.service
|
|
|
|
|
|
|
|
sudo systemctl start fdmrparrot.service
|
|
|
|
fi
|
|
|
|
sudo systemctl enable fdmrparrot.service
|
|
|
|
if systemctl status mariadb.service |grep disable >/dev/null 2>&1
|
|
|
|
sudo systemctl stop proxy.service
|
|
|
|
then sudo systemctl enable mariadb.service
|
|
|
|
sudo systemctl start proxy.service
|
|
|
|
|
|
|
|
sudo systemctl enable proxy.service
|
|
|
|
fi
|
|
|
|
sudo systemctl stop freedmr.service
|
|
|
|
if systemctl status fdmrparrot.service |grep active >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl stop fdmrparrot.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status proxy.service |grep active >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl stop proxy.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status freedmr.service |grep active >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl stop freedmr.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status fdmrparrot.service |grep disable >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl enable fdmrparrot.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status proxy.service |grep disable >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl enable proxy.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status freedmr.service |grep disable >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl enable freedmr.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
sudo systemctl start freedmr.service
|
|
|
|
sudo systemctl start freedmr.service
|
|
|
|
sudo systemctl enable freedmr.service ;;
|
|
|
|
sudo systemctl start fdmrparrot.service
|
|
|
|
|
|
|
|
sudo systemctl start proxy.service ;;
|
|
|
|
6)
|
|
|
|
6)
|
|
|
|
cronedit.sh '*/5 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/graph.sh' add
|
|
|
|
cronedit.sh '*/5 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/graph.sh' add
|
|
|
|
cronedit.sh '*/2 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/cpu.sh' add
|
|
|
|
cronedit.sh '*/2 * * * *' 'sh /opt/FDMR-Monitor/sysinfo/cpu.sh' add
|
|
|
|
sudo systemctl start mariadb.service
|
|
|
|
if systemctl status mariadb.service |grep inactive >/dev/null 2>&1
|
|
|
|
sudo systemctl enable mariadb.service
|
|
|
|
then sudo systemctl start mariadb.service
|
|
|
|
sudo systemctl stop fdmr_mon.service
|
|
|
|
|
|
|
|
sudo systemctl start fdmr_mon.service
|
|
|
|
fi
|
|
|
|
sudo systemctl enable fdmr_mon.service
|
|
|
|
if systemctl status mariadb.service |grep disable >/dev/null 2>&1
|
|
|
|
sudo systemctl stop http.server-fdmr.service
|
|
|
|
then sudo systemctl enable mariadb.service
|
|
|
|
sudo systemctl start http.server-fdmr.service
|
|
|
|
|
|
|
|
sudo systemctl enable http.server-fdmr.service;;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status http.server-fdmr.service |grep active >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl stop http.server-fdmr.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if systemctl status fdmr_mon.service |grep active >/dev/null 2>&1
|
|
|
|
|
|
|
|
then sudo systemctl stop fdmr_mon.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
sudo systemctl start fdmr_mon.service
|
|
|
|
|
|
|
|
sudo systemctl start http.server-fdmr.service ;;
|
|
|
|
7)
|
|
|
|
7)
|
|
|
|
sudo systemctl stop fdmrparrot.service
|
|
|
|
sudo systemctl stop fdmrparrot.service
|
|
|
|
sudo systemctl disable fdmrparrot.service
|
|
|
|
sudo systemctl disable fdmrparrot.service
|
|
|
|
|