The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing time for scripts in /etc/cron.daily

Discussion in 'General Discussion' started by gallot, Jun 29, 2006.

  1. gallot

    gallot Active Member

    Joined:
    Oct 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    How can I change the time when /etc/cron.daily will run? I think I have done this before but just can't remember how it was done.

    Thanks!
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Assuming Linux - /etc/crontab.
     
  3. Bash

    Bash Member

    Joined:
    May 7, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    It would depend on how your file directory was setup. Try using the locate command:

    locate cron.daily

    Then you will get a listing and be able to see where the file is exactly located.

    /etc/cron.daily
    /etc/cron.daily/0anacron
    /etc/cron.daily/logrotate
    /etc/cron.daily/makewhatis.cron
    /etc/cron.daily/rpm
    /etc/cron.daily/slocate.cron
    /etc/cron.daily/tetex.cron
    /etc/cron.daily/tmpwatch
    /etc/cron.daily/yum.cron
    /var/spool/anacron/cron.daily

    -Bash
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Erm, no. The correct answer was given by sawbuck. /etc/crontab is the configuration file that disctates when cron.daily is actually run.
     
  5. gallot

    gallot Active Member

    Joined:
    Oct 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Thanks! i got it. It is /etc/crontab indeedd
     
Loading...

Share This Page