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 04-18-2014, 03:17 AM   #1
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
which daemon doing logrotate


Hi,
Which daemon monitor and doing logrotate?
 
Old 04-18-2014, 03:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,360
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Its not a daemon but an application (see 'man logrotate') but log rotation usually is driven by a cron job.
 
Old 04-18-2014, 03:43 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Original Poster
Rep: Reputation: 148Reputation: 148
It seems there should be a cronjob to execute logrotate command with relevant logrotate configuration, if logs are fast growing then we should decide how often need to rotate the logs by cronjob.
 
Old 04-18-2014, 05:11 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,360
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
What is your question?
 
Old 04-18-2014, 05:33 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Original Poster
Rep: Reputation: 148Reputation: 148
Aah may be not clean enough..!! if no daemon monitor the logrotate process, either need to manually rotatate the logs(#logrotate --force /etc/logrotate.d/someconfig.conf) or need to add in the cronjob to execute the (#logrotate /etc/logrotate.d/someconfig.conf)

I am worrying about the effectiveness of adding logrotate in cronjob for fast growing logs

Last edited by kirukan; 04-18-2014 at 05:35 AM.
 
Old 04-18-2014, 06:28 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,360
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Logrotate allows you to rotate on several criteria like log file size and it allows you to execute a specific configuration file only. So if a log file is expected to grow to say 100mb within an hour it's easy to add a specific logrotate cron job addressing only that log file.
 
  


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
Why so many /usr/sbin/console-kit-daemon --no-daemon in htop? alarazr Linux - Newbie 2 07-09-2012 02:58 PM
[SOLVED] Not sure what "console-kit-daemon --no-daemon" means mark_alfred Linux - General 2 12-18-2011 05:59 PM
[SOLVED] logrotate or logrotate.conf; problems with sftp slufoot80 Linux - Server 1 11-05-2011 08:50 AM
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 05:29 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 06:51 PM

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

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