Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dbus running but who started it?
Date: Tue, 14 Apr 2009 21:11:34
Message-Id: 49E4FBB4.6030200@gmail.com
In Reply to: [gentoo-user] dbus running but who started it? by "Michael P. Soulier"
1 Michael P. Soulier wrote:
2 > Hi,
3 >
4 > I'm looking at my system and I'm surprised to find dbus running, since I put
5 > -dbus -hal in my /etc/make.conf.
6 >
7 > msoulier@anton:~$ ps -ef | grep dbus | grep -v grep
8 > msoulier 9221 1 0 Apr12 ? 00:00:00 /usr/bin/dbus-daemon --fork
9 > --print-pid 4 --print-address 6 --session
10 > msoulier 9222 1 0 Apr12 tty1 00:00:00 /usr/bin/dbus-launch
11 > --sh-syntax --exit-with-session
12 >
13 > msoulier@anton:~$ rc-config list | grep dbus
14 > dbus
15 >
16 > I didn't configure it to start, so something started it. I'm running XFCE4 so
17 > I suspect it started it, since it's running as me and not root.
18 >
19 > So lets see who needs it.
20 >
21 > msoulier@anton:~$ equery belongs /usr/bin/dbus-daemon
22 > [ Searching for file(s) /usr/bin/dbus-daemon in *... ]
23 > sys-apps/dbus-1.2.3-r1 (/usr/bin/dbus-daemon)
24 > msoulier@anton:~$ emerge --pretend --verbose --depclean sys-apps/dbus
25 >
26 > Calculating dependencies... done!
27 > sys-apps/dbus-1.2.3-r1 pulled in by:
28 > dev-libs/dbus-glib-0.76
29 >
30 >
31 >>>> No packages selected for removal by depclean
32 >>>>
33 > Packages installed: 631
34 > Packages in world: 155
35 > Packages in system: 51
36 > Required packages: 631
37 > Number to remove: 0
38 > msoulier@anton:~$ emerge --pretend --verbose --depclean sys-apps/dbus-glib
39 >
40 >>>> No packages selected for removal by depclean
41 >>>>
42 >
43 > That's odd. Nothing needs it? Then who started it?
44 >
45 > It's daemonized so I don't see a parent process beyond init.
46 >
47 > Mike
48 >
49
50 Do you have any of the following running on your system?
51
52 consolekit
53 cupsd
54 hald
55
56 Those according to a scan of /etc/init.d needs dbus. This may not be
57 true in your case since you have -dbus for your USE flag but it is here
58 although I have dbus turned on.
59
60 I hope that will help you with a place to look at least.
61
62 Dale
63
64 :-) :-)

Replies

Subject Author
Re: [gentoo-user] dbus running but who started it? "Michael P. Soulier" <msoulier@×××××××××××××.ca>