svcMonitor is not restarting services ...
[root@web:~]# service postfix status
master (pid 22024) is running...
[root@web:~]# service postfix stop
Shutting down postfix: [ OK ]
[root@web:~]# /usr/local/bin/svcMonitor
[root@web:~]# service postfix status
master is stopped
[root@web:~]# cat /usr/local/bin/svcMonitor
#!/bin/bash
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
for i in `cat /usr/local/etc/services-monitor`
do
service $i status 1> /dev/null
if [ $? -eq 1 ]
then
echo Restarted service $i on `hostname` at `date`
service $i restart
fi
done
[root@web:~]# cat /usr/local/etc/services-monitor
crond
httpd
mysqld
postfix
pure-ftpd
sshd