ps | grep $DAEMON | grep -v grep | awk '{print $1}'
how to get pid using ps grep and awk