entries=`ps -ax | grep winbindd | grep -v grep | wc -l`
if [ $entries -eq 0 ]; then
cd /usr/local/etc/rc.d
samba start
/usr/bin/logger -4 -i -t chkwinbind -p daemon.info Winbindd crash detected, process restarted
else
/usr/bin/logger -4 -i -t chkwinbind -p daemon.info Running $entries winbindd process\(es\)
fi