Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to see boot log messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gudmund
n00b
n00b


Joined: 27 Feb 2004
Posts: 20
Location: Gothenburg

PostPosted: Sun Oct 31, 2004 9:09 pm    Post subject: How to see boot log messages Reply with quote

Hello

I have problem with starting up a service at boot time and am struggling to really see what happens.

My server runs without a monitor and administration is done via telnet.

Does anyone know how to fetch the boot messages that is shown in console window (when a monitor is used)?
dmesg does not show the progress of the init.d scripts.
Neither does the logs in /var/logs/*.

Thanks in advance
/Gudmund
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 423

PostPosted: Mon Nov 01, 2004 12:10 am    Post subject: Reply with quote

one command is all you need:
dmesg

you can use it in conjunction with dmesg | grep <content to look for>
Back to top
View user's profile Send private message
gudmund
n00b
n00b


Joined: 27 Feb 2004
Posts: 20
Location: Gothenburg

PostPosted: Mon Nov 01, 2004 9:12 am    Post subject: Reply with quote

Hello

Strangely, dmesg does not show all messages?Shall it be configured somehow?

Gudmund
Back to top
View user's profile Send private message
cs02rm0
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2004
Posts: 91

PostPosted: Mon Nov 01, 2004 9:18 am    Post subject: Reply with quote

dmesg loops round so you only get the last n messages. Mine's 225 lines long... I've got a feeling dmesg will hold more than that though.
_________________
Rich
Back to top
View user's profile Send private message
transienteagle
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 190
Location: UK

PostPosted: Mon Nov 01, 2004 10:15 am    Post subject: Reply with quote

Peeps,

My understanding is that dmesg only reports events that affect the kernel itself. Any programs that run in user space on startup or at anytime are not reported.

To see what user space programs do on startup and to review all userspace messages you need something like bootlogd.

I'am not sure if we have an ebuild for bootlogd but the source should be readily available (just checked google....just type in bootlogd (pages of it)

rgds

TE
Back to top
View user's profile Send private message
gudmund
n00b
n00b


Joined: 27 Feb 2004
Posts: 20
Location: Gothenburg

PostPosted: Tue Nov 02, 2004 8:26 am    Post subject: Reply with quote

Hello all

Thanks for your help
bootlogd worked out fine for me ;-)

Best Regards
Gudmund
Back to top
View user's profile Send private message
orick
n00b
n00b


Joined: 08 May 2003
Posts: 46
Location: Chile

PostPosted: Mon Nov 29, 2004 11:01 pm    Post subject: Reply with quote

Hello Gudmund,

looking after bootlogd, I read it was in sysvinit, itself included in the baselayout package. However I did not find it in any place (except a Readme). In several places they say it should be in /etc/init.d, but it isn't.

By the way, my baselayout is up to date.

How did you get it going?

Thanks a lot,

Olivier
_________________
Olivier
Back to top
View user's profile Send private message
gudmund
n00b
n00b


Joined: 27 Feb 2004
Posts: 20
Location: Gothenburg

PostPosted: Tue Nov 30, 2004 7:48 pm    Post subject: Reply with quote

Hello Oliver

I think that I went to Debian and fetched sysvinit, then manually compiled
bootlogd (I looked quite a while myself to find it) and put the binary at
/usr/local/bin.

I then made a short start script (/etc/init.d/bootlogd) and stated
"before bootmisc" in the depend section (do not know if this is correct but it worked). And the issued "rc-update add bootlogd boot"

The generated logfile was quite hard to read due to a lot of unreadable characters. Maybe a result of wrongly character set somewhere on my system. But for my need it worked out fine. I found my boot problem and
have now actually disabled bootlogd (maybe it will come to use later on ;-)

Good luck

Regards
Gudmund Berggren



orick wrote:
Hello Gudmund,

looking after bootlogd, I read it was in sysvinit, itself included in the baselayout package. However I did not find it in any place (except a Readme). In several places they say it should be in /etc/init.d, but it isn't.

By the way, my baselayout is up to date.

How did you get it going?

Thanks a lot,

Olivier
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Mon Jun 20, 2005 11:12 am    Post subject: Reply with quote

orick wrote:
Hello Gudmund,

looking after bootlogd, I read it was in sysvinit, itself included in the baselayout package. However I did not find it in any place (except a Readme). In several places they say it should be in /etc/init.d, but it isn't.

By the way, my baselayout is up to date.

How did you get it going?

Thanks a lot,

Olivier

any news on this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum