Broken crontab/anacron

From: James Pifer (jep_at_obrien-pifer.com)
Date: 01/24/05

  • Next message: [NICK]: "Syslog Question (Receiving Remote Logs)."
    To: Fedora <fedora-list@redhat.com>
    Date: Mon, 24 Jan 2005 10:09:58 -0500
    
    

    I rebuilt one of my systems last week using FC3 and somehow I broke
    anacron or crontab. It hasn't run since Jan 20th according to what is in
    root's mailbox.

    I think the problem is anacron. I can't seem to get it running, or at
    least keep it running. It says it starts, but then when I look at the
    processes, it isn't running. The problem is I don't see anything in any
    logs about problems with it.

    Does anacron write logs to messages?
    What's the best way to troubleshoot it?

    My /etc/crontab HAD this in it:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

    # run-parts
    01 * * * * root run-parts /etc/cron.hourly
    02 4 * * * root run-parts /etc/cron.daily
    22 4 * * 0 root run-parts /etc/cron.weekly
    42 4 1 * * root run-parts /etc/cron.monthly
    00 01 * * * root /root/mythtvdbbackup
    00 03 * * * root /root/backupvideos
    35 * * * * root /root/mythlink.sh

    Now it has this:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

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

    Permissions on it are:
    [root@mythtv etc]# ls -l crontab
    -rwxr--r-- 1 root root 254 Jan 24 09:22 crontab

    Here's what I get when I try to start it.
    [root@mythtv etc]# service anacron start
    Starting anacron: [ OK ]
    [root@mythtv etc]# service anacron status
    anacron is stopped
    [root@mythtv etc]#

    Any help is appreciated.

    Thanks,
    James

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: [NICK]: "Syslog Question (Receiving Remote Logs)."

    Relevant Pages

    • Re: Anacron running very frequently
      ... > My syslog is full of anacron normal exit 0 jobs run type lines at few ... $ cat /etc/cron.d/anacron ... crontab entries for the anacron package ...
      (Debian-User)
    • Re: Change time updatedb is run
      ... >> anacron won't run at all if you're running 24/7. ... # Unlike any other crontab you don't have to run the `crontab' ... # This file also has a username field, that none of the other crontabs do. ...
      (Ubuntu)
    • Re: backup cron job?
      ... > This is also mentioned in the crontab man page. ... But this is anacron, not cron. ... So anacron can execute those jobs which ...
      (comp.os.linux.misc)
    • Re: cron, wont change time !
      ... >># Unlike any other crontab you don't have to run the `crontab' ... >># command to install the new version when you edit this file. ... ie if anacron don't exist, execute cron.daily as a backup system ... ...
      (Debian-User)
    • Re: Broken crontab/anacron
      ... > anacron or crontab. ... > I think the problem is anacron. ... > logs about problems with it. ...
      (Fedora)