Operating System - Linux
1828210 Members
2197 Online
109975 Solutions
New Discussion

Log file for startup processes

 
SOLVED
Go to solution
Ronald Cogen
Frequent Advisor

Log file for startup processes

Hello out there,

Where is the file for the start-up processes (rc..) which also includes the messages for volume mounts (using LVM)?
I've been down so long it looks like up to me
8 REPLIES 8
Michael Schulte zur Sur
Honored Contributor

Re: Log file for startup processes

Hi,

are you looking for /etc/rc.log?

Michael

Re: Log file for startup processes

most of the log stuff is located in /var/log...

try looking in:

/var/log/messages
/var/log/boot.log
/var/log/dmesg

Vernon Brown_4
Trusted Contributor

Re: Log file for startup processes

You might try /etc/inittab
You can put your own startup scripts in /etc/rc.d/rc.local

RedHat has them there.

Some distributions may put them in a different place.
Ronald Cogen
Frequent Advisor

Re: Log file for startup processes

Thanks for the quick response.

Yes, I was looking rc.log, but discovered that it is only included on HP systems, which is not the case here (surprise!). The logs in /var/log didn't seem to give me the information I wanted. Someone just told me I should be content with dmesg. The problem was that a volume didn't get dismaounted at shutdown because the mountpoint of the volume, /opt/ was getting written to. I thought I could find out which process it was by looking at the mount process log.
I've been down so long it looks like up to me
Michael Schulte zur Sur
Honored Contributor

Re: Log file for startup processes

Oops,

wrong forum..
agree with Jeffrey, there is also a command dmesg.

Michael
Ronald Cogen
Frequent Advisor

Re: Log file for startup processes

So, what is the best thing to do regarding my problem....?
I've been down so long it looks like up to me
Michael Schulte zur Sur
Honored Contributor

Re: Log file for startup processes

Hi,

You may replace for example rc"1-6".d in /etc/inittab with your own scripts which then calls:
rc"1-6".d | tee /tmp/rc1d.log
You would have to make a copy of tee to /sbin

does that make sense to anyone?

Michael
Martin P.J. Zinser
Honored Contributor
Solution

Re: Log file for startup processes

Hello Roland,

on my system there is a file called /var/log/boot.omsg which contains all messages from the last boot/shutdown cycle. If there is anything usefull displayed at shutdown you should be able to find it there. One thing you might try is to include an lsof in the shutdown script dismounting the disks to get information on the process hogging the disk.

Greetings, Martin