The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing values into logrotate?? imbiea Shell Programming and Scripting 1 06-09-2008 01:03 PM
how to set size in logrotate.conf icehero UNIX for Dummies Questions & Answers 0 02-24-2008 12:41 AM
logrotate doesn't do daily rotation....help required dvrmc UNIX for Dummies Questions & Answers 2 02-01-2008 01:00 AM
Logrotate problems - Can anyone spot the problem please?! anderow UNIX for Dummies Questions & Answers 10 01-10-2008 04:56 PM
logrotate.conf fredao UNIX for Advanced & Expert Users 10 12-19-2006 05:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2008
Registered User
 

Join Date: Oct 2001
Location: Toronto, Ontario, Canada
Posts: 34
Question Disabling logrotate

Is there a way to disable log rotation? (just for wtmp)
I'm looking in /etc/logrotate.conf and I checked the man page but didn't see any option to disable. Is it as simple as commenting out monthly and rotate lines?
Code:
/var/log/wtmp {
    missingok
#    monthly
    create 0664 root utmp
#    rotate 1
}
It would use the global configuration settings (which is 4 weekly rotations) for wtmp after wouldn't it? I just want 1 log file, no removing or rotations for wtmp.

Thanks!
Primal
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-04-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,162
I'm not exactly sure, but in the man pages it says :
Quote:
Note that comments may appear anywhere in the config file as long as the first non-whitespace character on the line is a #.
, so I assume you can just comment those out, restart logrotate and see if it works. Don't forget to copy the original conf file.
Reply With Quote
  #3 (permalink)  
Old 04-14-2008
Registered User
 

Join Date: Oct 2001
Location: Toronto, Ontario, Canada
Posts: 34
Thanks for your help sysgate!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0