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-17-2006, 06:00 AM   #1
dan0r
LQ Newbie
 
Registered: Sep 2004
Posts: 16

Rep: Reputation: 0
/etc/logrotate.d/squid


Hi,

I've made changes to the intervals in /etc/logrotate.d/squid

Do i need to reboot or restart any service for the new changes to apply?

Cheers.
 
Old 01-17-2006, 11:02 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
If you want them to apply immediately, you may want to force log rotation using:
logrotate -f your_logrotate_config_files

Otherwise, logrotate normally runs as a daily cron job.
This means it is in fact restarted each day, and reads the config files when it is started.
So, your config changes will take effect the next day at the latest.
See:
/etc/cron.daily/logrotate
/etc/logrotate.conf (and/or your own config files)
man logrotate
 
Old 01-17-2006, 11:37 AM   #3
dan0r
LQ Newbie
 
Registered: Sep 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thumbs up

Many 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
Logrotate negation brentos Linux - Software 1 04-21-2004 01:39 PM
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 07:08 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