LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changes to my logrotate.conf file do I need to reboot? (https://www.linuxquestions.org/questions/linux-newbie-8/changes-to-my-logrotate-conf-file-do-i-need-to-reboot-780614/)

mccartjd 01-07-2010 02:08 PM

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

EricTRA 01-07-2010 02:16 PM

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

mccartjd 01-07-2010 07:19 PM

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

jlinkels 01-07-2010 08:28 PM

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

abefroman 01-07-2010 09:44 PM

Quote:

Originally Posted by mccartjd (Post 3818251)
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

EricTRA 01-08-2010 01:28 AM

Quote:

Originally Posted by jlinkels (Post 3818295)
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 04:09 PM.