LinuxQuestions.org
Register a domain and help support LQ
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 12-01-2010, 05:47 PM   #1
userunfriendly
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Rep: Reputation: 0
What account does logrotate run under?


What account does logrotate usually run under. We have one machine where logrotate does not appear to be running automatically but I just ran it manually and it rotated fine. I look on some of our other machines where logrotate is working properly but I do not see a cron entry for it.

We mostly use redhat machines.

The only root entry on all of the machines I have checked is /bin/rpm.

TIA
 
Old 12-01-2010, 05:51 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
This is on my Ubuntu system. anacron is run from /etc/crontab. That runs all of the other cron jobs.

Code:
$ ls  /etc/cron*
/etc/crontab

/etc/cron.d:
anacron  debsecan  sysstat

/etc/cron.daily:
0anacron  aptitude      exim4-base     man-db              standard
apport    bsdmainutils  google-chrome  mlocate             sysstat
apt       dpkg          logrotate      popularity-contest

/etc/cron.hourly:

/etc/cron.monthly:
0anacron  standard

/etc/cron.weekly:
0anacron  apt-xapian-index  man-db
 
Old 12-01-2010, 05:58 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. You should see a file "/etc/cron.daily/logrotate". This is what enables "logrotate"
<= Compare your "working" PCs with the one that isn't working

2. You create individual logrotate jobs under "/etc/logrotate.d". The syntax is described in "man 8 logrotate", or any number of on-line tutorials. For example:

http://articles.techrepublic.com.com...1-1052474.html

'Hope that helps
 
Old 12-01-2010, 06:06 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I took the liberty to split the unrelated question and
responses out of the corpse (4 years dead) into a thread
of its own. Please don't thread-jack and necropost.


Cheers,
Tink

Last edited by Tinkster; 12-01-2010 at 07:08 PM. Reason: corpse
 
Old 12-01-2010, 07:04 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
http://www.amctv.com/originals/The-Walking-Dead/video

I think you meant corpse, not corps as in Marine Corps.
 
Old 12-01-2010, 07:08 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by stress_junkie View Post
http://www.amctv.com/originals/The-Walking-Dead/video

I think you meant corpse, not corps as in Marine Corps.
Quite right!

Thanks for catching that.
 
Old 12-01-2010, 11:41 PM   #7
userunfriendly
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
I took the liberty to split the unrelated question and
responses out of the corpse (4 years dead) into a thread
of its own. Please don't thread-jack and necropost.


Cheers,
Tink
Thank you and sorry.
 
Old 12-01-2010, 11:43 PM   #8
userunfriendly
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the replies, I found the file where it should be. I decided to try limiting the size in /etc/logrotate.d/syslog to 50M and will monitor.
 
Old 12-02-2010, 12:04 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Tinkster View Post
necropost
Great word Did you make it up?
 
  


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
Run VLC using root account Ashish Sood Linux - General 48 10-22-2016 05:06 AM
unable to run in user account wisdomvk Linux - Software 1 05-11-2007 08:21 PM
I want to automatically run a program when a user logs on their account bad_andy Linux - Newbie 7 02-01-2005 09:55 PM
logrotate won't run - gives error Avatar Linux - General 2 07-19-2004 11:22 AM
Esound won't run under User account natto34 Linux - Newbie 4 04-05-2002 10:22 AM


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