I have an init.d script to start crond which specifies the following for start():
start-stop-daemon -S --quiet --make-pidfile --pidfile /var/run/crond.pid --background --exec /usr/sbin/crond
However, the PID is always one number higher than what's recorded in /var/run/crond.pid. Does anyone have any idea what's going on here? I have approximately ten other init.d scripts that also make the same calls, and only cron.d has this issue.
EDIT: This is interesting:
# /usr/sbin/crond &
#
[1]+ Done /usr/sbin/crond
# echo $!
737
# ps -eaf | grep crond
738 root /usr/sbin/crond
740 root grep crond
#