LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2010, 02:08 PM   #1
mccartjd
Member
 
Registered: Apr 2008
Posts: 108

Rep: Reputation: 15
Wink Changes to my logrotate.conf file do I need to reboot?


Using RHEL 5 and change my logrotate.conf file and restart service auditd. In order for my changes to take effect when I modified my logrotate.conf file do I need to reboot my RHEL 5 system?

A million thanks
John
 
Old 01-07-2010, 02:16 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

As far as I know, logrotate is not a daemon that you restart but it's a process called from cron as a daily job. So there is nothing to restart. At the next scheduled run your config should be used when the logrotate process runs.

Of course if you want to run it to test your config then you can. It should be in /usr/sbin; so:
Code:
/usr/sbin/logrotate /etc/logrotate.conf
(if that's the location of your configuration file) should start it manually. And the next run will be triggered by the daily cron.

Kind regards,

Eric

Last edited by EricTRA; 01-07-2010 at 02:19 PM.
 
Old 01-07-2010, 07:19 PM   #3
mccartjd
Member
 
Registered: Apr 2008
Posts: 108

Original Poster
Rep: Reputation: 15
Wink Reponse to comment above

Ok I will keep an eye on this in about a 8 days to see if the log did not rotate, since by default it was set for weekly.

Will keep everyone up to date.
John
 
Old 01-07-2010, 08:28 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The answer by EricTRA is correct. Besides, you should forget about rebooting as something to be done after changes are made. Rebooting is only needed when you install a new kernel, or have messed up your loaded modules down to the point where you lose that much functionality that you cannot reload them.

jlinkels
 
Old 01-07-2010, 09:44 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by mccartjd View Post
Ok I will keep an eye on this in about a 8 days to see if the log did not rotate, since by default it was set for weekly.

Will keep everyone up to date.
John
Try this:
Code:
logrotate -vf /etc/logrotate.conf
 
1 members found this post helpful.
Old 01-08-2010, 01:28 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by jlinkels View Post
The answer by EricTRA is correct. Besides, you should forget about rebooting as something to be done after changes are made. Rebooting is only needed when you install a new kernel, or have messed up your loaded modules down to the point where you lose that much functionality that you cannot reload them.

jlinkels
Yeah, rebooting is something that belongs in the Microsoft world (have to do it on a weekly basis to keep those darn things running) whilst in LinuxLand it's rarely needed.

Kind regards,

Eric
 
  


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
logrotate for messages file shaife720 Linux - General 2 08-10-2009 05:50 AM
parameter /etc/logrotate.conf vikas027 Linux - Server 2 04-16-2009 08:28 AM
Logrotate/ bash script not rotating file noir911 Linux - Server 2 01-15-2009 03:56 PM
Logrotate conf: unexpted text TruckStuff Linux - General 4 06-18-2003 08:55 AM
Error in Logrotate.status file tomdlam Linux - General 0 10-17-2002 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 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
Open Source Consulting | Domain Registration