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.

stop logrotate

Discussion in 'General Discussion' started by iCARus, Feb 23, 2005.

  1. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Hello.

    How to disable logrotate in hours that is most visited with visitors? It is eating too much CPU and all is slow.... Can someone explain me how logrotate works ..is this every day or weekly ?
    Is safe to kill this process ?

    Thanks.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Are you sure it's logrotate and not the cpanellogd logrunner process that you're talking about. It's most likely to be the latter. You can control it by installing cPanel Add-on module "Log Scheduler" in WHM > Addons
     
  3. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Yes i', 100% that is logrotate. I have installed this addon and have disabled working hours and he just run and make all slow.He donst not stop in hours that are disbaled n this addon.

    Is there any way how to control working hours for logrotate?

    Thanks.
     
  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
    Well, logrotate normally runs as part of the daily cron at 04:00 through the script:

    /etc/cron.daily/logrotate

    If you want to move it from 04:00 (or whenever you have your daily cron set to run in /etc/crontab) you would need to move that script elsewhere and setup a root crontab to run it whenever you want.
     
  5. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    We have a lot of heavy sites with lots of visitors and i thing logrotate didnt finish his job in 4 hours (04:00->08:00), so i was moved his job to 01:00 . I hope this will fix my problem :)
    Thanks chirpy for your time.
     
  6. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Well,my problems still exists.
    Logrotate run's more than 11hr. and dont stop...
    Even with settings for logrotate to start on 01:00 ..he didnt stop at 12:00 PM.

    So, any suggestion from anyone ?

    Thanks.
     
  7. demomen

    demomen Well-Known Member

    Joined:
    Sep 25, 2004
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    I have cPanel 9.9.9-S15, I read there is problem with log not rotating is this working in my version..?

    How can I test :)
     
  8. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    My version is WHM 10.0.0 cPanel 10.0.0-C120 & CentOS 3.4.
     
Loading...

Share This Page