problem with hanging CRON job - Linux

This is a discussion on problem with hanging CRON job - Linux ; My weekly cron job got hung up this morning. The process list shows: id 8639 CROND with subprocesses 8640 /bin/bash /usr/bin/run-parts /etc/cron.weekly 9561 /usr/sbin/sendmail -FCronDaemon -i -odi -oem root 9563 /bin/bash /usr/bin/run-parts /etc/cron.weekly 9564 awk -v progname=/etc/cron.weekly/clean_close progname 9565 curl ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: problem with hanging CRON job

  1. problem with hanging CRON job

    My weekly cron job got hung up this morning.
    The process list shows:
    id 8639 CROND with subprocesses
    8640 /bin/bash /usr/bin/run-parts /etc/cron.weekly
    9561 /usr/sbin/sendmail -FCronDaemon -i -odi -oem root
    9563 /bin/bash /usr/bin/run-parts /etc/cron.weekly
    9564 awk -v progname=/etc/cron.weekly/clean_close progname
    9565 curl http://lookup.afts.com/off

    The processes 8639 & 8640 show start time of 01:57 ,
    the rest of the processes show start time of 03:36

    How can I get the processes to finish ? Am I stuck with just the option of killing them?
    And how can I avoid the problem in the future?

    Thanks.


  2. Re: problem with hanging CRON job

    On 8 May 2005 21:23:08 GMT, :crp: wrote:
    > My weekly cron job got hung up this morning.
    > The process list shows:
    > id 8639 CROND with subprocesses
    > 8640 /bin/bash /usr/bin/run-parts /etc/cron.weekly
    > 9561 /usr/sbin/sendmail -FCronDaemon -i -odi -oem root
    > 9563 /bin/bash /usr/bin/run-parts /etc/cron.weekly
    > 9564 awk -v progname=/etc/cron.weekly/clean_close progname
    > 9565 curl http://lookup.afts.com/off
    >
    > The processes 8639 & 8640 show start time of 01:57 ,
    > the rest of the processes show start time of 03:36
    >
    > How can I get the processes to finish ? Am I stuck with just the
    > option of killing them?



    You have the same batch job running at the same time.
    I would kill9564, 8640 and 9563 once the rest of the cron jobs complete,
    run the command
    /usr/bin/run-parts /etc/cron.weekly


    > And how can I avoid the problem in the future?


    I'm guessing you were playing with the time which caused the problem
    or executed the commands, or dinked with cron tab.

    Verify crontab is looking correct.

    Here is mine from Mandriva Limited Edition 2005 (Mandrake)
    $ cat /etc/crontab
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

    # run-parts
    01 * * * * root nice -n 19 run-parts /etc/cron.hourly
    02 4 * * * root nice -n 19 run-parts /etc/cron.daily
    22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
    42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly




+ Reply to Thread