My system hangs when i try to shutdown or reboot it. Boot works well, despite some issues related to the mt-daapd init script. Reproducible: Always
(In reply to comment #0) > My system hangs when i try to shutdown or reboot it. > I've discovered that it only happens when I have RC_PARALLEL="yes" in /etc/conf.d/rc. > Boot works well, despite some issues related to the mt-daapd init script. > > Reproducible: Always >
Can you see any error messages? Also, post which running services did not shutdown.
(In reply to comment #2) > Can you see any error messages? Also, post which running services did not > shutdown. > No error message is displayed on shutdown. I've done some tests and the problem seens to be related to the mt-daapd script which gives an error message when starting. Removing the service solved the problem. When I try to start it manually with "/etc/int.d/mt-daapd start" the text output is: mt-daapd | * Starting mt-daapd DAAP server ... mt-daapd | * start-stop-daemon: /usr/sbin/mt-daapd died [ !! ] mt-daapd | * ERROR: mt-daapd failed to start Then looking to the output of "ps aux" I could find: nobody 2349 0.0 0.0 2716 848 ? S 12:25 0:00 /usr/sbin/mt-daapd -P /var/run/mt-daapd.pid -c /etc/mt-daapd.conf nobody 2350 1.0 0.1 20024 1964 ? Sl 12:25 0:00 /usr/sbin/mt-daapd -P /var/run/mt-daapd.pid -c /etc/mt-daapd.conf rktesser 2355 0.0 0.0 2964 808 pts/0 S+ 12:25 0:00 grep --colour=auto mt-daapd And I noticed the file /var/run/mt-daapd.pid has been created. And if I try to start the service again I have: mt-daapd | * Starting mt-daapd DAAP server ... mt-daapd | * start-stop-daemon: /usr/sbin/mt-daapd is already runnin [ !! ] mt-daapd | * ERROR: mt-daapd failed to start But if I issue the command "/etc/init.d/mt-daapd stop" I get the next output: mt-daapd | * WARNING: mt-daapd is already stopped So I think the daemon is running but the RC system didn't stop it during shutdown because there was an error in the service initialization and it thinks mt-daapd isn't running.
(In reply to comment #1) > (In reply to comment #0) > > My system hangs when i try to shutdown or reboot it. > > > I've discovered that it only happens when I have RC_PARALLEL="yes" in > /etc/conf.d/rc. It also hangs when I shutdown here, but I have RC_PARALLEL="no" set.
Does this happen with rc2? If not, please try this patch. http://bugs.gentoo.org/attachment.cgi?id=129449
rc2 worked, but the issue I had with rc3 was solved by removing the bpalogin initscript from the default runlevel, not by the patch that Uber provided. For both me and the OP, it seems the rc3 stalls on shutdown/reboot when it encounters an initscript it doesn't like.
(In reply to comment #5) > Does this happen with rc2? If not, please try this patch. > http://bugs.gentoo.org/attachment.cgi?id=129449 > With rc2 my system didn't hang on shutdown. So, I applied the patch to rc3-r1 and this problem has been solved with this version also. But I'm still getting the error messages related to the mt-daapd script.
Fixed in rc4