If pidof is used to determine a daemon (for example sendmail) is running, and if sendmail is running, pidof will exit with a return code of 0 and the PID is printed. If however, the daemon (for example sendmail) is not working, pidof will not print anything and exit with a nonzero return code
Redhat Derivatives already come with pidof installed. If you do not have the program, you can install by using
# yum install sysvinit-tools