Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15664 - dcron should produce a pid file
Summary: dcron should produce a pid file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 18:35 UTC by Russell Adams
Modified: 2003-02-14 13:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Adams 2003-02-13 18:35:58 UTC
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
Comment 1 Russell Adams 2003-02-14 11:27:18 UTC
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
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-02-14 13:50:21 UTC
fixed with -r10

thx