LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
 
Search this Thread
Old 01-09-2009, 04:54 PM   #1
lynkster
LQ Newbie
 
Registered: Jan 2009
Distribution: Redhat
Posts: 1

Rep: Reputation: 0
why are boot.log and boot.log.1 getting updated but no reboot has taken place


We're seeing the boot logs, snmpd being restarted, etc. but no reboot has taken place according to who -b and uptime. Is there some overriding weekly clean up process causing this? All I see in cron is /root/bin/ntpsync.sh

Thanks!
 
Old 01-09-2009, 10:18 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
This sounds like the action of a subsystem called logrotate. Quite commonly, a logrotate script needs to stop a daemon while it moves the logfile out from under the daemon, and then restarts it. You can find the scripts that do this in /etc/logrotate.d
 
Old 01-10-2009, 11:17 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
This is what cron is running BTW:
Code:
$ grep 'daily' /etc/crontab
02 4 * * * root run-parts /etc/cron.daily

$ cat /etc/cron.daily/logrotate
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
 
  


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
/var/log/boot.log doesn't exist??? big_gie Fedora 5 05-17-2008 05:44 AM
Logging is not happening on my /var/log/boot.log Copain Linux - Security 2 09-28-2007 05:34 PM
/var/log/boot.log - fixing this, or what? jhwilliams Fedora 5 09-13-2007 05:15 PM
/var/log/boot.log has size 0 ?? jhwilliams Fedora 3 06-16-2007 08:55 AM


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