LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-06-2003, 04:37 PM   #1
cuss
Member
 
Registered: Dec 2002
Posts: 63

Rep: Reputation: 15
restarting logrotate.d


Hi,

I've added an entry into /etc/logrotate.d/syslog and am wondering if i have to restart logrotate.d or any daemons (syslog?) for the log rotation to take effect? If i do have to restart logrotate.d what is the syntax? My entry is below. Do I need to add any addtional scripts anywhere else? It's a redhat 7.2 server. Thanks.


/var/log/kernel {
monthly
rotate 12
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
 
Old 02-06-2003, 05:01 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Log rotation is done from inside the cron daemon, so you don't need to do any more. It will read your changes when the commands are activated.

The cron files are in /etc/crond.~ directories...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with logrotate tflavell Linux - Newbie 6 07-04-2005 04:32 AM
Logrotate Help! MaverickApollo Linux - Software 3 02-19-2004 01:09 PM
logrotate dominant Linux - Newbie 1 02-13-2004 10:28 AM
logrotate Rig24 Linux - Newbie 2 07-11-2003 06:08 AM
logrotate MrJoshua Linux - General 2 09-25-2002 10:55 AM


All times are GMT -5. The time now is 04:54 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration