diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-25 16:21:08 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-25 16:21:08 -0300 |
commit | 439da2334eb58df4bbd50093684e711afd76232f (patch) | |
tree | 93a66356b1562ba283487cc15361abb11ba6ec51 /config/unbound/unbound_monitor.sh | |
parent | 600f999e7ddeaaaa1b2abc25469fa13091aa4b05 (diff) | |
download | pfsense-packages-439da2334eb58df4bbd50093684e711afd76232f.tar.gz pfsense-packages-439da2334eb58df4bbd50093684e711afd76232f.tar.bz2 pfsense-packages-439da2334eb58df4bbd50093684e711afd76232f.zip |
Fix whitespaces and indent
Diffstat (limited to 'config/unbound/unbound_monitor.sh')
-rwxr-xr-x | config/unbound/unbound_monitor.sh | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/config/unbound/unbound_monitor.sh b/config/unbound/unbound_monitor.sh index 152a308e..23939311 100755 --- a/config/unbound/unbound_monitor.sh +++ b/config/unbound/unbound_monitor.sh @@ -39,25 +39,25 @@ fi sleep 5 while [ /bin/true ]; do - if [ ! -f /var/run/unbound_alarm ]; then - NUM_PROCS=`/bin/pgrep unbound | wc -l | awk '{print $1}'` - if [ $NUM_PROCS -lt 1 ]; then - # Unbound is not running - echo "Unbound has exited." | logger -p daemon.info -i -t Unbound_Alarm - echo "Attempting restart..." | logger -p daemon.info -i -t Unbound_Alarm - /usr/local/etc/rc.d/unbound.sh start - sleep 3 - touch /var/run/unbound_alarm - fi - fi - NUM_PROCS=`/bin/pgrep unbound | wc -l | awk '{print $1}'` - if [ $NUM_PROCS -gt 0 ]; then - if [ -f /var/run/unbound_alarm ]; then - echo "Unbound has resumed." | logger -p daemon.info -i -t Unbound_Alarm - rm /var/run/unbound_alarm - fi - fi - sleep $LOOP_SLEEP + if [ ! -f /var/run/unbound_alarm ]; then + NUM_PROCS=`/bin/pgrep unbound | wc -l | awk '{print $1}'` + if [ $NUM_PROCS -lt 1 ]; then + # Unbound is not running + echo "Unbound has exited." | logger -p daemon.info -i -t Unbound_Alarm + echo "Attempting restart..." | logger -p daemon.info -i -t Unbound_Alarm + /usr/local/etc/rc.d/unbound.sh start + sleep 3 + touch /var/run/unbound_alarm + fi + fi + NUM_PROCS=`/bin/pgrep unbound | wc -l | awk '{print $1}'` + if [ $NUM_PROCS -gt 0 ]; then + if [ -f /var/run/unbound_alarm ]; then + echo "Unbound has resumed." | logger -p daemon.info -i -t Unbound_Alarm + rm /var/run/unbound_alarm + fi + fi + sleep $LOOP_SLEEP done if [ -f /var/run/unbound_alarm ]; then |