Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190464 - baselayout-2.0.0_rc3-r1 system hangs on shutdown
Summary: baselayout-2.0.0_rc3-r1 system hangs on shutdown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-27 21:07 UTC by Rafael
Modified: 2007-09-02 13:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael 2007-08-27 21:07:32 UTC
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
Comment 1 Rafael 2007-08-27 22:23:44 UTC
(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
> 
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-08-28 06:54:23 UTC
Can you see any error messages? Also, post which running services did not shutdown.
Comment 3 Rafael 2007-08-28 15:39:06 UTC
(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.
Comment 4 Mark Kowarsky (RETIRED) gentoo-dev 2007-08-31 07:51:48 UTC
(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.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-08-31 09:14:36 UTC
Does this happen with rc2? If not, please try this patch.
http://bugs.gentoo.org/attachment.cgi?id=129449
Comment 6 Mark Kowarsky (RETIRED) gentoo-dev 2007-08-31 12:17:26 UTC
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.
Comment 7 Rafael 2007-08-31 14:44:10 UTC
(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.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-09-02 13:17:29 UTC
Fixed in rc4