#!/bin/bash
if [ -e /var/run/rpcbind.pid -a `/bin/ps aux | grep -w "rpcbind" | grep -v grep | wc -l` -eq 0 ]; then
   logger -s " moose was here - rpcbind is dead in check script we send exit 1"
   exit 1
else
   logger -s "rpcbind alive in check script"
   exit 0
fi
