ps -ef | grep -q dhcpd if [ $? -eq 0 ] ; then echo "dhcpd running" else echo "dhcpd not running" fi
ps -fu <user> | grep -q dhcpd