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 |
This is on my Ubuntu system. anacron is run from /etc/crontab. That runs all of the other cron jobs.
Code:
$ ls /etc/cron* |
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 |
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 |
http://www.amctv.com/originals/The-Walking-Dead/video
I think you meant corpse, not corps as in Marine Corps. |
Quote:
Thanks for catching that. |
Quote:
|
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.
|
Quote:
|
All times are GMT -5. The time now is 06:40 AM. |