I don't think recompiling will help as I don't think creating a pidfile is an option.
But maybe you could modify the start script in /etc/rc.d/rc.M by adding your line:
# Start crond (Dillon's crond):
# If you want cron to actually log activity to /var/log/cron, then change
# -l10 to -l8 to increase the logging level.
if [ -x /usr/sbin/crond ]; then
/usr/sbin/crond -l10 >>/var/log/cron 2>&1
pidof crond > /var/run/cron.pid
fi
the pidfile would get stale if cron died unexpectedly, but then presumably Monit would alert you to that?
maybe worth a try anyway
tobyl
|