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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-07-2010, 02:08 PM
|
#1
|
Member
Registered: Apr 2008
Posts: 108
Rep:
|
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
|
|
|
01-07-2010, 02:16 PM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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.
|
|
|
01-07-2010, 07:19 PM
|
#3
|
Member
Registered: Apr 2008
Posts: 108
Original Poster
Rep:
|
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
|
|
|
01-07-2010, 08:28 PM
|
#4
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
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
|
|
|
01-07-2010, 09:44 PM
|
#5
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Rep:
|
Quote:
Originally Posted by mccartjd
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.
|
01-08-2010, 01:28 AM
|
#6
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Quote:
Originally Posted by jlinkels
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
|
|
|
All times are GMT -5. The time now is 05:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|