Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267706 - sys-auth/consolekit should be started before sys-apps/hal
Summary: sys-auth/consolekit should be started before sys-apps/hal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 21:34 UTC by Davide Pesavento
Modified: 2009-05-02 00:17 UTC (History)
0 users

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 Davide Pesavento (RETIRED) gentoo-dev 2009-04-27 21:34:51 UTC
hald seems to automatically spawn a console-kit-daemon instance if none is running, so if the consolekit init script is scheduled to start after hald, it will fail because the daemon is already running.
Adding "use consolekit" or "after consolekit" to depend() in hald init script is enough to fix the problem.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-28 06:27:34 UTC
sounds sensible for some reason it always starts before hald here but I guess this is pure luck.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2009-04-28 08:25:56 UTC
(In reply to comment #1)
> sounds sensible for some reason it always starts before hald here but I guess
> this is pure luck.
> 

Indeed. By chance consolekit was starting before hald on my box too, but the order changed when I added NetworkManager to the default runlevel, unveiling the missing dependency.
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-04-28 15:50:23 UTC
How about a "before hald" in consolekit?  That way hal doesn't change for people who don't use consolekit.
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-29 07:59:19 UTC
(In reply to comment #3)
> How about a "before hald" in consolekit?  That way hal doesn't change for
> people who don't use consolekit.
> 

That would indicate that consolekit *needs* to be started before hald, but the situation is that hald *uses* consolekit. So IMO, "use consolekit" in hald would be better.
Comment 5 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-29 08:00:52 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > How about a "before hald" in consolekit?  That way hal doesn't change for
> > people who don't use consolekit.
> > 
> 
> That would indicate that consolekit *needs* to be started before hald, but the
> situation is that hald *uses* consolekit. So IMO, "use consolekit" in hald
> would be better.
> 

Also, "use" doesn't add a hard dependency. It only says "if it's in the runlevel, hald could use it => start it before hald"
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-02 00:17:49 UTC
Fixed in hal-0.5.12_rc1-r2