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.

Run logrunner regardless of load

Discussion in 'General Discussion' started by iUnknown, Nov 11, 2008.

  1. iUnknown

    iUnknown Member

    Joined:
    Jul 11, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I've found that my server can't cope with the amount of logs it has to process, but it really should be fine...

    I use two cPanel log programs, analog and awstats.

    I noticed that logrunner uses a cpusystem which I think is stopping the log processing from running due to my average/normal server load...

    How can I make /usr/local/cpanel/bin/logrunner run regardless of the server load? I had this issue with /scripts/cpbackup and I was directed to edit it and remove some lines... So how can I do this with log runner?

    Also, how can I stop the cPanel update from updating certain files (eg. /scripts/cpbackup and logrunner so that it doesn't remove my edited versions) - if it's possible?

    Thanks very much.
     
  2. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Try tweaking below property to a very high value.

    WHM >> Server Configuration >> Tweak Settings >> Stats and Logs

    The load average above the number of cpus at which logs file processing should be suspended (default 0)
     
  3. iUnknown

    iUnknown Member

    Joined:
    Jul 11, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks very much for your help, exactly what I wanted. (+rep).
     
  4. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    You're welcome! Glad to be of help to the community.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    For your last question:

    Place copies of your edited versions in a safe location. Create a /scripts/postupcp file and make it executable. Edit /scripts/postupcp and populate it with instructions to copy your custom files from the safe location to the system location. As a simple example:

    Code:
    #!/bin/bash
    
    cp -f /root/custom_files/cpbackup /scripts
    
    Each time upcp runs, at the end, it will execute /scripts/postupcp and perform the actions therein.
     
Loading...

Share This Page