Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2009

    Disable logrotate

    Hi, is it possible to disable log rotate? I can't seem to find the cron under my weeklys or dailys nor monthlys unless it's named "mad-db" but is there a way to make it say yearly? or just disable it all together? I say this because the script I use has a function already to clear the logs and when log rotate runs it kills all processes going by the script Thanks for any help in advance.

  2. #2
    Join Date
    Dec 2005
    Is /etc/cron.daily/logrotate definatley not present?

  3. #3
    Join Date
    Jun 2009
    ^ nope not it weekly anymore.

  4. #4
    Join Date
    Dec 2005
    This is going to take a while to run, but try:

    find / -name logrotate

    It should tell you where logrotate is located and you can work from there to disable it

  5. #5
    Join Date
    Jun 2009
    it's in /etc/logrotate.conf and /etc/logrotate.d/lighttpd

  6. #6
    Join Date
    Jul 2005
    New Jersey, US
    Look in the cron log file, that should tell you where you can find it.

    grep logrotate /var/log/cron
    PlatinumServerManagement (also known as PSM)
    The OLDEST and LARGEST and MOST TRUSTED server management provider in the USA, with 15+ employees and growing!
    Providing quality support for OVER 18 years! Currently supporting over 3,000+ servers monthly! Proud member of the NJ BBB & Chamber of Commerce & Authorized cPanel Partner.

  7. #7
    Join Date
    Sep 2006
    Dallas, TX
    I think you need to remove the /etc/logrotate.d/lighttpd file. That is telling logrotate to rotate its logs.

  8. #8
    Join Date
    Apr 2003
    Quote Originally Posted by NeilAgg View Post
    I think you need to remove the /etc/logrotate.d/lighttpd file. That is telling logrotate to rotate its logs.
    That should only be the case if it is running.

    It sounds like you have a cronjob somewhere you cannot find.

    While certainly not suggested you could do a "locate logrotate" and chmod 000 it. This is more of a hack and not solving it the proper way but if you still cannot find it that would work.
    John W, CISSP, C|EH
    MS Information Security and Assurance - Server Administration and Security - Managed VPS and Dedicated Servers with VIP Service

  9. #9

    In my experience, it is best to go with "least invasive to most invasive" when dealing with issues.

    Removing logrotate is most invasive.
    Disabling logrotate by "chmod 000" or otherwise moving the cron job is least invasive (in my opinion).

    I don't have logrotate's cron location memorized, but if this is Linux, check the following directories:

    along with the file /etc/crontab

    Thank you.
    Peter M. Abraham
    LinkedIn Profile

Similar Threads

  1. Help with logrotate
    By annuncinetwork in forum Dedicated Server
    Replies: 6
    Last Post: 06-30-2008, 11:23 AM
  2. Logrotate
    By TheComputerGuy in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 05-10-2005, 06:14 PM
  3. logrotate
    By JasonBD in forum Programming Discussion
    Replies: 3
    Last Post: 04-15-2003, 11:54 AM
  4. logrotate help
    By skylab in forum Dedicated Server
    Replies: 0
    Last Post: 04-04-2002, 05:39 AM
  5. Logrotate
    By Omair Haroon in forum Dedicated Server
    Replies: 7
    Last Post: 02-11-2002, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts