If I do a 'ps -ef' on my system I see the following:-
root 17343 1 0 04:02 ? 00:00:00 crond root 17344 17343 0 04:02 ? 00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily root 18023 17344 0 05:05 ? 00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
Why does '/bin/bash /usr/bin/run-parts /etc/cron.daily' appear to be spawning a copy of itself just over an hour after it started? I have looked at the /usr/bin/run-parts script and I really can't see a reason why it should do this unless one of the scripts in /etc/cron.daily is doing something wierd and I have only added a very simple backup script there.
Oh, this is on Fedora 7 by the way.
On Sat, 2007-11-24 at 10:22 +0000, Chris G wrote:
Why does '/bin/bash /usr/bin/run-parts /etc/cron.daily' appear to be spawning a copy of itself just over an hour after it started? I have looked at the /usr/bin/run-parts script and I really can't see a reason why it should do this unless one of the scripts in /etc/cron.daily is doing something wierd and I have only added a very simple backup script there.
I take it there is only one instance of cron.daily in the crontab file ?
Personally I would count yourself lucky..on my home server cron.daily .hourly etc don't seem to be working. Stuff explicitly set in crontab is fine, as are the user crontab's but despite checking everything I can think of, scripts in cron.daily or cron.hourly are ignored.
It's one of those things on a "will be fixed when it really starts bothering me and I have time" list.
On Sat, Nov 24, 2007 at 12:54:29PM +0000, Wayne Stallwood wrote:
On Sat, 2007-11-24 at 10:22 +0000, Chris G wrote:
Why does '/bin/bash /usr/bin/run-parts /etc/cron.daily' appear to be spawning a copy of itself just over an hour after it started? I have looked at the /usr/bin/run-parts script and I really can't see a reason why it should do this unless one of the scripts in /etc/cron.daily is doing something wierd and I have only added a very simple backup script there.
I take it there is only one instance of cron.daily in the crontab file ?
It works from /etc/crontab, there is only one /etc/cron.daily entry in /etc/crontab.
Personally I would count yourself lucky..on my home server cron.daily .hourly etc don't seem to be working. Stuff explicitly set in crontab is fine, as are the user crontab's but despite checking everything I can think of, scripts in cron.daily or cron.hourly are ignored.
It's one of those things on a "will be fixed when it really starts bothering me and I have time" list.
Maybe you need a /etc/crontab file! :-)