Black Hand wrote:
ps uax | grep -v grep | grep '/usr/bin/python /usr/sbin/greylistd' > /dev/null
A little OT and a nitpick, but this is better:
ps uax | grep "/usr/bin/python /usr/sbin/greylist[d]" > /dev/null
It will achieve the same (eliminating your own grep process) and will save you an exec.