#!/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