+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Aug 2009
- Posts
- 63
Script to monitor and restart spamd
#!/bin/sh
#
# Process Monitor
#
a="/usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5"
checkspamd=`ps ax | grep -v grep | grep -c spamd`
if [ $checkspamd -lt 1 ]
then
`$a`
fi


LinkBack URL
About LinkBacks



Reply With Quote