Re: Broken crontab/anacron

From: Robert Locke (rlocke_at_ralii.com)
Date: 01/25/05

  • Next message: Matthew Saltzman: "Re: Disk Druid - Fedora flame #1"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Tue, 25 Jan 2005 08:19:39 -0500
    
    

    On Tue, 2005-01-25 at 06:27 -0500, James Pifer wrote:
    > > A very quick test of cron. Put this line in /etc/crontab
    > >
    > > * * * * * root touch /root/crontest ; echo "crontest updated"
    > >
    > > Then look at the file to see the date//time stamp
    > > ls -l /root/crontest
    > >
    > > If cron is doing it's job the time stamp should get updated once per
    > > minute so it should stay current on date/time forever (until you remove
    > > the entry from /etc/crontab) You also should get an email to root once
    > > a minute with the echoed message.
    > >
    > > Note, you will want to remove that line from crontab very soon.
    > >
    >
    > Jeff,
    >
    > I get nothing. No /root/crontest file created and no messages in root's
    > mailbox.
    >
    > My crontab now looks like:
    > [root@mythtv ~]# cat /etc/crontab
    > 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
    > * * * * * root touch /root/crontest ; echo "crontest updated"
    >
    > Should I reinstall cron?

    Pardon for jumping in here, but have you restarted crond since you made
    the change to /etc/crontab? I am not sure if crond is going to
    automagically notice a change to the file or not.... So, to restart the
    cron daemon, you could do either a "service crond restart" or a "service
    crond reload".

    HTH,

    --Rob

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

  • Next message: Matthew Saltzman: "Re: Disk Druid - Fedora flame #1"

    Relevant Pages

    • Re: Crontab Issue.....Please Help
      ... to the cron using the 'crontab -e' command, I must restart the 'crond' ... Once I restart the cron, the everything executes just ...
      (comp.os.linux.setup)
    • Re: ps: warning: /var/run/dev.db: No such file or directory
      ... > I've since noticed that cron didn't restart, which is odd, but fixable, ... I wound up rebooting the server, and it looks like as if /etc/rc bombs ... None of the additional daemons are started: cron, ... Commercial OS breeds commerce, whereas free OS breeds freedom, ...
      (freebsd-questions)
    • Re: A little room on /
      ... I don't think crond ... ITYM "cron". ... Under Solaris 9 the function of /etc/cron.d/logchecker has been replaced ...
      (comp.unix.solaris)
    • Re: "watchdog" for a process?
      ... sktsee wrote: ... Cron, that will look at the process list and if a process has been ... killed or had died will restart the process? ... the listing will give some results. ...
      (Ubuntu)
    • Re: crontab
      ... > - did u restart the cron deamon after you made changes to the crontab? ... You don't need to restart the cron daemon ... Manuel Arostegui Ramirez #Linux Registered User 295750 ...
      (RedHat)