Rev 824 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
#!/bin/sh
# $Id: alcasar-bl.sh 412 2011-01-03 21:40:09Z richard $
# alcasar-watchdog.sh
# by Franck BOUIJOUX
# This script is distributed under the Gnu General Public License (GPL)
# Watchdog of Services
# See /etc/cron.d/alcasar-daemon-watchdog for config the time
SERVICE="httpd chilli radiusd mysqld dansguardian dnsmasq havp ntpd squid master"
for s in $SERVICE
do
CMD=`pidof $s`
if [ -z "$CMD" ]
then
service $s restart
else
echo "Service $s is On on PID : $CMD"
fi
done