CC-2888: Create a monit file for each airtime component
-missed some changes in the full-install
This commit is contained in:
parent
df4bf9e1c7
commit
dffe6b33ac
|
@ -74,16 +74,14 @@ echo "4. Enable Monit"
|
||||||
echo "----------------------------------------------------"
|
echo "----------------------------------------------------"
|
||||||
cd /etc/default/
|
cd /etc/default/
|
||||||
sed -i 's/startup=0/startup=1/g' monit
|
sed -i 's/startup=0/startup=1/g' monit
|
||||||
cp $SCRIPTPATH/../../python_apps/monit/airtime-monit.cfg /etc/monit/conf.d
|
|
||||||
|
|
||||||
grep -q "include /etc/monit/conf.d" /etc/monit/monitrc
|
grep -q "include /etc/monit/conf.d" /etc/monit/monitrc
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -ne 0 ] ; then
|
if [ $RETVAL -ne 0 ] ; then
|
||||||
|
mkdir -p /etc/monit/conf.d
|
||||||
echo "include /etc/monit/conf.d/*" >> /etc/monit/monitrc
|
echo "include /etc/monit/conf.d/*" >> /etc/monit/monitrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
service monit start
|
|
||||||
|
|
||||||
# Run Airtime Install
|
# Run Airtime Install
|
||||||
echo "----------------------------------------------------"
|
echo "----------------------------------------------------"
|
||||||
echo "5. Run Airtime Install"
|
echo "5. Run Airtime Install"
|
||||||
|
|
Loading…
Reference in New Issue