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.

cron.daily run 2 times -- help

Discussion in 'General Discussion' started by isputra, Mar 22, 2006.

  1. isputra

    isputra Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    576
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mbelitar
    Hi,

    Yesterday i realize that scripts on cron.daily run 2 times, like :
    - LogWatch
    - APF
    - freshclam

    Also on Cron <root@server> run-parts /etc/cron.daily report to my email with the message :

    /etc/cron.daily/freshclam:
    ClamAV update process started at Thu Mar 23 04:02:52 2006
    main.cvd is up to date (version: 36, sigs: 44686, f-level: 7, builder: tkojm)
    daily.cvd is up to date (version: 1350, sigs: 2406, f-level: 7, builder: ccordes)
    /etc/cron.daily/slocate.cron:
    fatal error: updatedb: create_db(): rename: No such file or directory

    I search on this forum and change slocate attribute with chmod 755 like the suggestion but it seems today have the same issue. Cron.daily run 2 times again.

    Is there any suggestion i can use ?
     
  2. asish

    asish Active Member

    Joined:
    Dec 4, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Opent he file

    /etc/crontab

    Tjhere you can set

    0 0 * * * root run-parts /etc/cron.daily

    for the daily cronjob to be run only once.
     
Loading...

Share This Page