SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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
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.
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.
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
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).
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
will HAL/dbus will work as it was if I removepkg console-kit?
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?)
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.