Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some services don't start at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Fri Dec 10, 2010 8:54 am    Post subject: Some services don't start at boot Reply with quote

Hi,

Some of the services that are added to the "default" runlevel don't start at boot. Those that I've noticed are:

* hald
* dbus
* alsasound
* apache2
* mpd

There are no errors on start, the services just don't show up :? I don't know how to debug this and I would be very grateful for any help.

Best regards,
Crocodil
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Fri Dec 10, 2010 11:09 am    Post subject: Reply with quote

try to run:
Code:
/etc/init.d/dbus broken

to request a list of missing dependencies for dbus...
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Fri Dec 10, 2010 4:04 pm    Post subject: Reply with quote

No luck :(

Quote:
# /etc/init.d/dbus broken
* dbus: unknown function `broken'
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Dec 10, 2010 4:09 pm    Post subject: Reply with quote

CAn you post this :

Code:

# rc-update
# rc-status
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Mon Dec 13, 2010 8:11 am    Post subject: Reply with quote

I'm sorry for the late response - I didn't have access to that PC over the weekend...

Here are the results:

Quote:
# rc-status
Runlevel: default
syslog-ng [ stopped ]
dbus [ stopped ]
udev-postmount [ stopped ]
hald [ stopped ]
net.eth0 [ started ]
net.br0 [ started ]
netmount [ started ]
sshd [ stopped ]
apache2 [ stopped ]
mpd [ stopped ]
vixie-cron [ stopped ]
xdm [ starting ]
alsasound [ stopped ]
local [ stopped ]
Dynamic Runlevel: hotplugged
net.eth0 [ started ]
Dynamic Runlevel: needed
udev-mount [ started ]
sysfs [ started ]
Dynamic Runlevel: manual


Quote:
# rc-update
termencoding | boot
syslog-ng | default
udev-postmount | default
hald | default
mtab | boot
procfs | boot
killprocs | shutdown
bootmisc | boot
savecache | shutdown
swap | boot
apache2 | default
urandom | boot
net.lo | boot
mount-ro | shutdown
mpd | default
devfs | sysinit
localmount | boot
udev | sysinit
hwclock | boot
vixie-cron | default
sshd | default
keymaps | boot
netmount | default
xdm | default
local | nonetwork default
modules | boot
sysctl | boot
consolefont | boot
dbus | default
alsasound | default
hostname | boot
net.eth0 | default
root | boot
net.br0 | default
fsck | boot
dmesg | sysinit


I hope this will be helpful :)
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Mon Dec 13, 2010 2:22 pm    Post subject: Reply with quote

well ,can you start the services manually?
I suggest you should check your runlevel:
Code:
cat /etc/inittab | grep -e initdefault
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Mon Dec 13, 2010 4:22 pm    Post subject: Reply with quote

Yes, I am able to start those services manually and that's what I did but I'm tired of doing it every day ;)

I'm sorry but I don't know what you mean. Here's the result of the command you gave:
Quote:
# cat /etc/inittab | grep -e initdefault
id:3:initdefault:
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Mon Dec 13, 2010 4:39 pm    Post subject: Reply with quote

Hi,

as dbus should at least be started before hal, i would first just try to "rc-update add dbus boot".

Hth, cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Tue Dec 14, 2010 4:39 am    Post subject: Reply with quote

This is very strange. You can view the initscripts at:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&part=2&chap=4
Finally, you can check the boot sequence:
Press the CTRL + ALT + F1 to see the message,just like this:
Code:
INIT:Entering runlevel:3
* Starting D-bus system messagebus  [ok]

Press the CTRL+ALT+F7 to return.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Tue Dec 14, 2010 4:52 am    Post subject: Reply with quote

I ran into this problem yesterday. For me it started after I upgraded to the lastest nvidia-drivers (260.18.26). What happened is the boot process stopped on hald once X had started up. Then, even hours later, if I did a Ctrl-Alt-F1, the boot process would finish. I fixed it by adding the following line to depend() in xdm:
Code:
   after hald
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Tue Dec 14, 2010 5:09 am    Post subject: Reply with quote

I'm glad you have solved the problem.I also got a lot from this question,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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