dcron should produce a PID file in /var/run on startup. All core system services ought to. The simple fix is to add the following options to the start-stop-daemon line in /etc/init.d/dcron when starting crond: --make-pidfile --pidfile /var/run/cron.pid A "rm -f /var/run/cron.pid" would suffice in the stop section. Reproducible: Always Steps to Reproduce: 1. 2. 3. * sys-apps/dcron Latest version available: 2.7-r9 Latest version installed: 2.7-r9 Size of downloaded files: 15 kB Homepage: http://apollo.backplane.com/ Description: A cute little cron from Matt Dillon
Seems that perhaps start-stop-daemon is reporting the wrong PID in the pid file. Perhaps a better method is: /usr/bin/pgrep -x -u 0 -P 1 crond > /var/run/cron.pid
fixed with -r10 thx