View previous topic :: View next topic |
Author |
Message |
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Fri Aug 14, 2009 7:42 pm Post subject: OpenRC daemon kill strangeness |
|
|
I recently upgraded to OpenRC and Baselayout2.
On the whole I'm very pleased with the improvements, however I do have one VERY annoying issue
Sometimes when I shutdown or restart, the a daemon fails to stop properly, then the computer takes an age to stop while it waits for the various init scripts that depend on it to give up. So for instance, a daemon can be stuck "stopping", like net.wlan0 for example, then I'll see a series of messages like:
Quote: | Aug 9 00:54:08 echo /etc/init.d/sshd[14048]: sshd: waiting for net.wlan0
Aug 9 00:54:13 echo /etc/init.d/sshd[14048]: sshd: waiting for net.wlan0
Aug 9 00:54:18 echo /etc/init.d/sshd[14048]: sshd: waiting for net.wlan0
Aug 9 00:54:23 echo /etc/init.d/sshd[14048]: sshd: waiting for net.wlan0
Aug 9 00:54:28 echo /etc/init.d/sshd[14048]: sshd: waiting for net.wlan0 |
They'll be about 50 of these (one every 5 secons or so), then it'll move on the the next one:
Quote: | Aug 9 00:56:46 echo /etc/init.d/rpc.statd[14326]: rpc.statd: waiting for netmount
Aug 9 00:56:51 echo /etc/init.d/rpc.statd[14326]: rpc.statd: waiting for netmount
Aug 9 00:56:56 echo /etc/init.d/rpc.statd[14326]: rpc.statd: waiting for netmount |
This goes on for some time, script after script, until the computer eventually shuts down, which can take up to 20 mins.
This didn't happen pre Baselayout2.
There are some setting in /etc/rc.conf that seem to be appropriate, I have things like:
Quote: | rc_retry_kill="yes"
rc_retry_timeout=1
rc_retry_count=5 |
I may not understand these options properly, but it seems they they're not taking effect.
"rc_retry_count=5" and "rc_retry_timeout=1" ...but I it seems like they tried to stop every 5 seconds, and try about 50 times!
The typical daemons that seem to cause the initial problem and get stuck stopping are "netmount" and "net.wlan0".
So two questions:
How do I stop daemons getting stuck stopping?
How do I stop daemons waiting pointlessly for other daemons to stop for so long (how do I set better timeout retry number)?
Thanks in advance
Cheers,
jcat
Last edited by jcat on Fri Aug 14, 2009 10:02 pm; edited 1 time in total |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Aug 14, 2009 9:08 pm Post subject: |
|
|
Please post the output Code: | rc-update show sysinit boot shutdown |
and your installed versions of openrc, baselayout and udev. |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Fri Aug 14, 2009 10:01 pm Post subject: |
|
|
No problem:
Code: |
killprocs | shutdown
devfs | sysinit
udev | sysinit
modules | boot
urandom | boot
consolefont | boot
hwclock | boot
keymaps | boot
sysctl | boot
dmesg | sysinit
hostname | boot
savecache | shutdown
bootmisc | boot
mount-ro | shutdown
mtab | boot
procfs | boot
swap | boot
device-mapper | boot
localmount | boot
fsck | boot
alsasound | boot
net.lo | boot
termencoding | boot
root | boot |
Code: | sys-apps/baselayout-2.0.1
sys-apps/openrc-0.4.3-r3
sys-fs/udev-141
|
I guess I could try the testing version of udev..
Any thoughts?
Cheers,
jcat |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Aug 14, 2009 10:16 pm Post subject: |
|
|
I think you are using a hardmasked udev. And I don't see either of your baselayout and openrc versions in my portage tree.
On my box I have this (I'm using this ~i686) maybe that makes a difference - not sure:sys-apps/baselayout-2.1.3
sys-apps/openrc-0.5.0-r2
sys-fs/udev-135-r6 Code: | # rc-update show sysinit boot shutdown
alsasound | boot
bootmisc | boot
devfs | sysinit
device-mapper | boot
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
localmount | boot
lvm | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.lo | boot
procfs | boot
root | boot
savecache | shutdown
swap | boot
sysctl | boot
termencoding | boot
udev-mount | sysinit
udev-postmount | boot
udev-save | shutdown
udevd | sysinit
urandom | boot
|
Take a look at your /etc/init.d to see what udev services you have. |
|
Back to top |
|
|
drobbins Retired Dev
Joined: 10 Apr 2002 Posts: 19 Location: Albuquerque, NM
|
Posted: Sat Aug 15, 2009 5:09 am Post subject: Re: OpenRC daemon kill strangeness |
|
|
jcat wrote: | I recently upgraded to OpenRC and Baselayout2.
On the whole I'm very pleased with the improvements, however I do have one VERY annoying issue
Sometimes when I shutdown or restart, the a daemon fails to stop properly, then the computer takes an age to stop while it waits for the various init scripts that depend on it to give up. So for instance, a daemon can be stuck "stopping", like net.wlan0 for example, then I'll see a series of messages like:
|
Mike Hunt is using Funtoo Linux so the package versions are going to be off from what you have in Gentoo. I'd see if Gentoo has a 0.5.x openrc that you can test. If this doesn't solve the issue, I'd file a Gentoo bug report on bugs.gentoo.org, or file one on Roy's OpenRC bug tracker.
-Daniel |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Sat Aug 15, 2009 11:23 am Post subject: |
|
|
Thanks for the replies.
My package versions are the most recent in the unstable portage tree.
I'm not totally sure about switching to Funtoo completely (no offense Daniel, your project looks very interesting, and I thank you for all your Gentoo efforts past and present ).
I might add Roys git overlay http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=summary
But I was reading on his notes about version 5 OpenRC:
Quote: | Anyway, although it's the OpenRC default, I don't expect it to become the Gentoo default for OpenRC until modules like PPP and wpa_supplicant gain init scripts - and in the case of wpa_supplicant some needed functionality for hotplugging. |
So I'm not sure if that's such a good idea.. I do use wpa_supplicant
Any idea? Would it be best to wait for Gentoo portage tree to make these changes?
Or should I steam in?
Cheers,
jcat |
|
Back to top |
|
|
|
|
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
|
|