LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-29-2013, 10:05 AM   #1
lastflight
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu 12.10
Posts: 3

Rep: Reputation: Disabled
Question How does logrotate use its status file?


It seems the status file is only a record of the last day logrotate dealt with a log file.
But I am using logrotate for non-system purposes and the rotation is based entirely on size (not frequency). So I thought I might ignore the status file entirely. I run logrotate like so (in a cron job):
logrotate -s /dev/null .logrotate.conf
and it works fine.
Am I missing anything?
 
Old 05-29-2013, 01:45 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,341
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
No, not missing anything.
 
1 members found this post helpful.
Old 05-30-2013, 03:54 AM   #3
lastflight
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu 12.10
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you very much, unSpawn.
 
  


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
[SOLVED] Logrotate stops when the file is missing. shri_22ram Linux - Software 3 02-13-2013 05:51 AM
[SOLVED] logrotate or logrotate.conf; problems with sftp slufoot80 Linux - Server 1 11-05-2011 07:50 AM
Changes to my logrotate.conf file do I need to reboot? mccartjd Linux - Newbie 5 01-08-2010 01:28 AM
logrotate for messages file shaife720 Linux - General 2 08-10-2009 05:50 AM
Error in Logrotate.status file tomdlam Linux - General 0 10-17-2002 08:38 PM


All times are GMT -5. The time now is 04:09 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