how to stop console-kit-daemon?

Asked by dfszb

I want to stop console-kit-daemon (it shows up in htop with n threads (n>50), read various posts about its crashes, etc etc.
I checked /etc/init.d , and did not see consolekit script referred in various forum posts.
I also grepped through /etc/ and did not find where is it launched from.
Question: who is launching / controlling this process? How can it be stopped from starting?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Pablo Martí
Solved:
Last query:
Last reply:
Revision history for this message
Pablo Martí (pmarti) said :
#1

ConsoleKit is activated through DBus. If you want to make sure that won't start again you should remove /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service

Note that doing this might leave some applications in an unusable state...

Revision history for this message
Harald (harald-kirsch) said :
#2

Any ideas what applications this might be? What I read about console-kit, it is completely unnecessary on a machine that I am working on alone for 99.9% of the time. Given that, it is extremely annoying to get bombed with 60 sub processes in pstree, htop and the like.

Any hints appreciated.

Harald.

Revision history for this message
Best Pablo Martí (pmarti) said :
#3

The main one would be NetworkManager 0.7+, which uses PolicyKit (which depends on ConsoleKit) for its "system connections". I've compiled in the past NetworkManager without PolicyKit and it works (as long as you don't hit the "system connection" code path :), this was on a Redflag system rather than a Ubuntu one, so I can't comment much more here...

Hal and DBus both depend on it, and I've never tried to run DBus without ConsoleKit on a modern system). I guess that you should backup and remove the mentioned file, run applications like always and check what fails (what a genius I'm :P)

Revision history for this message
dfszb (dnotob) said :
#4

Thanks Pablo Martí, that solved my question.