puppet/modules/rhizo_base/files/bin/bind_check.sh
Ciaby 1c7dffc32a Initial refactoring
Renamed rhizomatica_base_system to rhizo_base
Split up the init.pp in different subclasses
More work to follow
2015-05-18 14:01:31 -05:00

12 lines
423 B
Bash
Executable file

#!/bin/bash
currdate=`date`
if (grep 'but not bound for Rx' /var/log/osmo-nitb/current > /dev/null); then
echo -e "$currdate - OpenBSC lost RX bind" >> /var/log/bind_check.log
/etc/init.d/kannel restart >/dev/null
:>/var/log/osmo-nitb/current
echo -e "$currdate - Restarted kannel and cleared osmo-nitb log" >> /var/log/bind_check.log
else
echo -e "$currdate - OpenBSC has the RX bind" >> /var/log/bind_check.log
fi