LinuxQuestions.org
Help answer threads with 0 replies.
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 04-18-2004, 03:16 PM   #1
will103
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Ubuntu
Posts: 72

Rep: Reputation: 15
manual log rotation


Hi, I have a quick question about rotating log files. I am running Mandrake 10 Community edition.

Is there a way of manually rotating the log files? My machine isn't on at a specific time each day so I can't set a specific time for this to be done. Are there any utilities availlable that can do this?

Thanks in advance

will103
 
Old 04-18-2004, 04:49 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
hehe, strange i was rooting through this this monring...

most replacement cron daemons like anacron will (as far as i know) compensate for these kind of situations and run things on boot (typically after a certain wait etc...) but if you want to do it manually try "logrotate -f /etc/logrotate.conf" assuming that's where the config file is. the f will force the logs to be rotated, if you drop the -f it will only rotate them if necessary.. which is what the cron job would do.
 
Old 04-20-2004, 03:20 AM   #3
will103
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Ubuntu
Posts: 72

Original Poster
Rep: Reputation: 15
Hi acid_kewpie
Thanks for the tip

Will103
 
  


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
How to resolve log rotation error? sdebiasio Linux - Newbie 4 09-08-2004 03:48 AM
Webalizer With Log Rotation dmedici Linux - Software 0 08-17-2004 10:06 AM
Snort log rotation suggestions zerocomm Linux - Security 1 05-26-2004 11:23 PM
disable log rotation in site krishn Linux - General 1 07-28-2003 08:53 AM
Log rotation - NewB nrastogi Linux - Software 1 02-12-2003 11:44 PM

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

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