Initial refactoring

Renamed rhizomatica_base_system to rhizo_base
Split up the init.pp in different subclasses
More work to follow
This commit is contained in:
Ciaby 2015-05-18 14:01:31 -05:00
parent 7b938abede
commit 1c7dffc32a
192 changed files with 547 additions and 430 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
while (true);
do STR=`echo "show lchan" | nc localhost 4242 | grep BROKEN`;
if [ -n "$STR" ];
then echo `date "+%y%m%d_%H%M"` >> /var/tmp/broken_channels_log.txt;
STR=`echo "show lchan" | nc localhost 4242`;
echo -e "Subject:BROKEN Channels\n\nBroken at: `date`\n\n\n$STR" | sendmail $RECIPIENTS
fi;
sleep 600;
done