LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2011, 09:39 AM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Question Who start this daemon: console-kit ?


Hello

Running Slackware-13.37 as media server(categories x,xap,kde,kdei not installed).
/etc/rc.d/rc.consolekit is 644(non executable)
psaux and htop show /usr/sbin/console-kit-daemon --no-daemon process, its parent process is init. Start time coincides with system boot time.
So question: who does spawn it?
 
Old 09-21-2011, 01:01 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
grep -nH 'console-kit-daemon' /etc/rc.d/*
 
Old 09-22-2011, 02:27 AM   #3
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Quote:
grep -nH 'console-kit-daemon' /etc/rc.d/*
Code:
root@sop-korniychuk:~# grep -nH "console-kit-daemon" /etc/rc.d/*
/etc/rc.d/rc.M:175:# Start console-kit-daemon:
/etc/rc.d/rc.consolekit:11:  echo "Starting ConsoleKit daemon:  /usr/sbin/console-kit-daemon"
/etc/rc.d/rc.consolekit:44:  /usr/sbin/console-kit-daemon
/etc/rc.d/rc.consolekit:53:    killall -HUP -q console-kit-daemon
Quote:
/etc/rc.d/rc.consolekit is 644(non executable)
Quote:
root@sop-korniychuk:~# ls -la /etc/rc.d/rc.consolekit
-rw-r--r-- 1 root root 988 вер 21 14:53 /etc/rc.d/rc.consolekit
Any other stupid ideas?
 
Old 09-22-2011, 02:38 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
please, people is trying to help, there's no need to be rude.

can you show us:
- the ps output;
- ls -la /etc/rc.d/ | grep rwx | grep -v [d,l]rwx | grep -v rc\.[0,4,6,K,M,S]
- the rc.local content.

obviously you have other software besides standard slackware packages to use it as a mediacenter: can it be something related to those is involved? are you by chance using hal/udisks on the host?

Last edited by ponce; 09-22-2011 at 03:07 AM.
 
Old 09-22-2011, 03:46 AM   #5
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
ponce
Quote:
- the ps output;
Attached ps.txt
Quote:
- ls -la /etc/rc.d/ | grep rwx | grep -v [d,l]rwx | grep -v rc\.[0,4,6,K,M,S]
Attached lsla.txt
Quote:
- the rc.local content.
It is virgin. Attached rc.local.txt
Quote:
obviously you have other software besides standard slackware packages to use it as a mediacenter
Asterisk PBX and DAHDI kernel modules for now.
Quote:
are you by chance using hal/udisks on the host?
System for now is quite clean:
changes only in /etc/rc.d/rc.inet1.conf|rc.mysqld|rc.keymap|rc.font and /etc/profile.d/lang.sh|.csh(changed language settings)
But: in order to find cause I have substituted /usr/sbin/console-kit-daemon with shell script which calls pstree -lpc and so now I know precess tree during its spawn
Code:
init(1)-+-acpid(1446)
        |-dbus-daemon(1458)---dbus-daemon(1510)---console-kit-dae(1512)---pstree(1514)
        |-dhcpcd(1321)
        |-dhcpcd(1370)
        |-hald(1463)-+-hald-runner(1467)-+-hald-addon-acpi(1509)
        |            |                   |-hald-addon-inpu(1496)
        |            |                   `-hald-addon-stor(1507)
        |            `-{hald}(1468)
        |-inetd(1432)
        |-klogd(1247)
        |-rc.M(1231)---update-gtk-immo(1511)---update-gtk-immo(1513)---uname(1515)
        |-sshd(1437)
        |-syslogd(1243)
        `-udevd(957)-+-udevd(1057)
                     `-udevd(1058)
chmod -r /etc/dbus-1/system.d/ConsoleKit.conf does not helps.
Now I will try to play with /usr/share/dbus-1/* folks, but I really hate services/daemons which really cannot be turned off by only one trigger(like chmod -x). It is appears for me /etc/rc.d/rc.consolekit is redundant.
Attached Files
File Type: txt ps.txt (6.4 KB, 32 views)
File Type: txt lsla.txt (1.5 KB, 26 views)
File Type: txt rc.local.txt (272 Bytes, 20 views)
 
Old 09-22-2011, 04:05 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Many of the X startup methods, such as the various xinitrc and xsession files have a little code snippet like this:
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session /usr/bin/dwm
else
    exec /usr/bin/dwm
fi
My guess would be that the ck-launch-session is causing dbus to start the console-kit daemon on-demand. But as I removepkg'd Console-Kit a good while ago, it's only a guess.

edit:

Sorry Fey: I missed this bit:
Quote:
r(categories x,xap,kde,kdei not installed).
which clearly show's I'm barking up the wrong tree here.

Last edited by GazL; 09-22-2011 at 04:59 AM.
 
Old 09-22-2011, 04:11 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
no, I don't think /etc/rc.d/rc.consolekit is redundant, the thing seems a little different to me: apparently, it's launched with the --no-daemon option by dbus, probably because it's needed.

I think you can try removepkg / chmod -x /etc/rc.d/rc.hald / rebuilding hal with --disable-console-kit, if you want to get rid of it (and if you don't need hal at all / automounting for external drives).

Last edited by ponce; 09-22-2011 at 05:11 AM. Reason: added for completeness also the chmod option
 
Old 09-22-2011, 06:12 AM   #8
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
GazL, not installed X at all, and will not be installed ever.
ponce, will HAL/dbus will work as it was if I removepkg console-kit? I don't know how strongly HAL/dbus requires console-kit, and don't know how strongly system requires HAL/dbus, and so do not want remove anything system requires and I don't know about it. (My basic requirements is proper detecting and configuration of NICs, successful loading DAHDI, working iptables and running mysql,vsftpd,shhd and asterisk).
 
Old 09-22-2011, 06:31 AM   #9
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
If I was you, I would simply try if disabling consolekit support (rebuilding hal) will play smooth with your setup, and if it will, I wouldn't worry much.

that's if you want absolutely to remove consolekit, but frankly, as it's used by hal on your setup, in the end, I can't understand why you are struggling to do it.

Quote:
Originally Posted by FeyFre View Post
will HAL/dbus will work as it was if I removepkg console-kit?
no, it won't.

Last edited by ponce; 09-22-2011 at 08:13 AM.
 
Old 09-23-2011, 10:56 AM   #10
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Unfortunately, I don't know real purpose of Console-Kit package. Is it really required by any component? I'm sure not, because 8-9 years ago there was not any console-kit thing and Linux worked good. So I do not understand reasons why it was introduced and hardcoded(as you said) into other components. And so I don't understand what will I have stable system after I remove it.(By the way, I didn't found any references to console-kit in either dbus and hal sources. Or I had bad search?)
 
Old 09-23-2011, 11:23 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Code:
hal-0.5.14 $ ./configure --help | grep console-kit
  --enable-console-kit    Use ConsoleKit
from slackware's hal.SlackBuild
Code:
...
./configure \
...
  --enable-console-kit \
...
http://www.freedesktop.org/wiki/Software/ConsoleKit

it has been discussed a lot (here and elsewhere) but, to make it short, it has become a freedesktop.org standard, so everybody was pretty much forced to adopt it.

Quote:
Originally Posted by FeyFre View Post
And so I don't understand what will I have stable system after I remove it
you have probably to rebuild some stuff, as I said, but you can try it and fix any problem that arise, that's freedom!

Quote:
Is it really required by any component? I'm sure not, because 8-9 years ago there was not any console-kit thing and Linux worked good.
slackware (or any other distribution) default software dotation is just a little bit different compared to 8-9 years ago.

Last edited by ponce; 09-23-2011 at 11:36 AM.
 
  


Reply

Tags
daemon, slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Console-kit daemon spawns more than 60 child-processes pigkouinos Slackware 2 09-18-2011 03:07 PM
How can I start a program from tty1 console to be executed in tty2 console? jtag Linux - Software 6 09-10-2010 07:13 PM
How to use the skype daemon (CONSOLE) ? frenchn00b Debian 2 01-01-2010 09:15 AM
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 04:29 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration