ps -ef | grep -v grep | grep inetd $rc = $? if [ $rc -ne 0 ] ; then echo " inetd is not up " fi