LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-16-2009, 06:33 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question parameter /etc/logrotate.conf


Hi,

Could someone help me with the options which are in bold in /etc/logrotate.conf


Code:
/var/log/htmlaccess.log
{ 

errors jim
notifempty

nocompress
weekly

prerotate
/usr/bin/chattr -a /var/log/htmlaccess.log
endscript

postrotate
/usr/bin/chattr +a /var/log/htmlaccess.log
endscript

}

Thanks in adv.
 
Old 04-16-2009, 06:38 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Code:
errors jim
sent errors to jim
Code:
notifempty
don't rotate if the file is empty

http://articles.techrepublic.com.com...1-1052474.html

Last edited by repo; 04-16-2009 at 06:41 AM.
 
Old 04-16-2009, 08:28 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Smile

Quote:
Originally Posted by repo View Post
Code:
errors jim
sent errors to jim
Code:
notifempty
don't rotate if the file is empty

http://articles.techrepublic.com.com...1-1052474.html
thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a little help with logrotate Udi Linux - Newbie 1 02-02-2009 11:01 AM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
Logrotate - did I get it right? Swakoo Linux - General 1 06-20-2006 05:14 AM
logrotate Rig24 Linux - Newbie 2 07-11-2003 05:08 AM
Logrotate conf: unexpted text TruckStuff Linux - General 4 06-18-2003 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration