You are not logged in.

#1 2010-01-22 21:08:52

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Services run at startup - logs ? How to debug the failed ones?

Hi,
Maybe it is a newbie question, maybe not, but I am trying to find which services fail at startup (and then why).

I was expecting to find the named info in the dmesg files in /var.
No such luck, as dmesg lists only the kernel info.
I tried to look through the files in /var/log  (/var/log/messages.log daemon.log *.log)
I could not find on file to list the services that start during the system init and if they do it successfully or fail (as it is printed on the screen, or similar).

Any ideas where I could look for more info?

Many thanks

Offline

#2 2010-01-22 22:45:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Services run at startup - logs ? How to debug the failed ones?

Services that you want to start at boot time should be added to the /etc/rc.conf DAEMONS array.

Services that started successfully at boot-time are listed in the /var/run/daemons/ directory.

For any service that fails, debug it by running the actual command from the init script's 'start)' stanza as root in a terminal and checking the output.

Offline

#3 2010-01-23 09:58:42

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: Services run at startup - logs ? How to debug the failed ones?

Thanks for the hint with /var/run/daemons
On the other hand this solves my problem only partially, because using the /etc/rc.d/Serv start method I cannot see the proper order in which the services were started and at what point they failed.
I was expecting to have something like http://www.freebsd.org/cgi/man.cgi?quer … ormat=html
In freebsd the dmesg prints the system buffer, not only the kernel buffer.

Offline

#4 2010-01-23 10:13:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Services run at startup - logs ? How to debug the failed ones?

Daemons are started in the order that they are listed in the DAEMONS array.

Offline

Board footer

Powered by FluxBB