You are not logged in.

#1 2012-10-30 23:04:33

weirddan455
Member
Registered: 2012-04-15
Posts: 194

Has consolekit not been replaced yet?

Saw the news item so I did a full update.  I still can't remove consolekit because of dependecies though.  Has the update just not been pushed out yet or am I required to do something?

sudo pacman -R consolekit
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: slim: requires consolekit
:: xfce4-session: requires consolekit

Offline

#2 2012-10-30 23:05:17

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,353

Re: Has consolekit not been replaced yet?

It just got pushed from testing in the last few minutes. Wait for the mirrors to update.

Last edited by Scimmia (2012-10-30 23:05:56)

Offline

#3 2012-10-30 23:06:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Has consolekit not been replaced yet?

I think the news was just pushed to make users aware that the changes are about to come.  As I ahve not seen the repos updated to fully reflect the change yet.  In fact, I beloeve the necessary polkit is still only available in testing.  You ned to have polkit 0.107-4 for it to be compatible with logind

Offline

#4 2012-10-30 23:10:30

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,353

Re: Has consolekit not been replaced yet?

Check it again, WonderWoofy, they're being pushed to the main repos as we speak.

Offline

#5 2012-10-31 01:20:25

weirddan455
Member
Registered: 2012-04-15
Posts: 194

Re: Has consolekit not been replaced yet?

Alright I got the update now and removed console kit without any dependency problems.  I wasn't trying to be impatient.  I just didn't know what time the news item was posted.

Offline

#6 2012-10-31 01:40:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Has consolekit not been replaced yet?

Yes, I apparently posted mere minutes before it was actually pushed.  In any case I ahve been using thesting repos for a bit over a week, and all is well.

Offline

#7 2012-10-31 03:33:49

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

Does pacman -Rs consolekit also remove the consolekit systemd services or do we have to do that manually?

Edit: It doesn't seem to be fully removed. The following two are no longer listed with systemctl --all:

console-kit-daemon.service
console-kit-log-system-start.service

But consolekit.service still appears with "error | inactive | dead" against it.

What is the command to remove this (and other) dead services?

systemctl disable consolekit.service only gives this error: "Failed to issue method call: No such file or directory".

Thanks.

Last edited by kinleyd (2012-10-31 03:56:44)

Offline

#8 2012-10-31 04:07:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Has consolekit not been replaced yet?

Since you didn't disable them before removal (which I don't even know if it was possible or not), you probably have to go and delte the symlinks themselves.

I must say, good riddence to consolekit!  I definitely agree with the sentiments posted on one of the mailing lists that said "Kill it with fire!"  Though I can't find that email anymore.  I may have deleted it.

Offline

#9 2012-10-31 04:19:29

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

Thanks WonderWoofy. I couldn't find anything in my /etc folders, but found a number of .service files in /lib/systemd/system. I would be grateful for any definitive pointers as to which location the symlinks are in, or which symlinks I can safely delete to remove the inactive/dead services.

Last edited by kinleyd (2012-10-31 04:20:31)

Offline

#10 2012-10-31 04:57:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Has consolekit not been replaced yet?

It would be a symlink in one of the *.target.wants folders.  Enable something that isn't alread enabled, and you will see that the command actually just symlinks the given service into the appropriate folder as defined in the [Install] section of the .service file itself.  So you would be looking in /etc/systemd/system or /usr/lib/systemd/system or /run/systemd/system.  Though the /run folder is volatile, so it probably is not going to be there.

I have been running without consolekit for maybe two months now.  I had been using a polkit patched by tomegun that would work with either logind or consolekit.  Then I switched to the testing repo's consolekit.  Then I though hey, what the hell, I'll just try the testing repo.  I must say, so far I am impressed with how smooth the testing repo has been.

Offline

#11 2012-10-31 05:02:32

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

Thanks a lot. I will try it out the way you suggested. I won't be as bleeding edge as you, but I'll try not to be too far behind. ;)

Offline

#12 2012-10-31 09:08:08

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Has consolekit not been replaced yet?

I can't find any consolekit-related services on my system.

Offline

#13 2012-10-31 10:34:59

SoleSoul
Member
From: Israel
Registered: 2009-06-29
Posts: 309

Re: Has consolekit not been replaced yet?

This systemd is funny, it replaces everything smile In the end we would call our systems GNU/SystemD.

Last edited by SoleSoul (2012-10-31 10:35:15)

Offline

#14 2012-10-31 12:21:53

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Has consolekit not been replaced yet?

Hopefully it will replace the GNU part, not the Linux one. smile


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#15 2012-10-31 13:18:54

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

@brain0: It's pretty weird: I had all these as inactive/dead services when I checked after removing consolekit (and rebooting, etc):

auditd, consolekit, plymouth-quit-wait, plymouth-start, rc-local, syslog.

Later in the day I installed kernel 3.6.4 and rebooted, and all remained in the list of inactive/dead services except consolekit, which was gone. Which is good, in a way, though I still have to hunt down the others and remove them.

Offline

#16 2012-10-31 13:32:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Has consolekit not been replaced yet?

@brain0, I think the only reason why they would still be showing up is if you were to enable them to have them load early.  Since they were always loaded anyway, some users were apparnetly having delays with it being pulled as a dep instead of being specified as a startup service.

@ kinleyd, I noticed those things as well. If you don't plan on using things like plymouthd or auditd or a real syslog (in addition to the journal), you can simply mask them.  Do this by either using systemctl mask or simply symlinking the units in /etc/systemd/system to /dev/null.

Offline

#17 2012-10-31 13:34:54

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

Thanks, WonderWoofy, that's very helpful. I'll try the 'systemctl mask' route and see how it goes.

Last edited by kinleyd (2012-10-31 15:17:48)

Offline

#18 2012-10-31 14:26:07

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Has consolekit not been replaced yet?

WonderWoofy wrote:

@ kinleyd, I noticed those things as well. If you don't plan on using things like plymouthd or auditd or a real syslog (in addition to the journal), you can simply mask them.  Do this by either using systemctl mask or simply symlinking the units in /etc/systemd/system to /dev/null.

There is no need to mask those services - they don't exist. There are some references to them in other units, that's why they show up. If you want a nice overview over your system, try

systemctl

or

systemctl list-unit-files

Offline

#19 2012-10-31 15:12:53

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

@brain0: You are right, neither systemctl nor 'systemctl list-unit-files' shows the errors I mentioned. However, 'systemctl --all' does reflect them, and that's the issue. Having seen it, it'd be nice to fix it (ie. remove the source of the errors, especially if the services don't exist) -- if it isn't too complicated.

Last edited by kinleyd (2012-10-31 15:14:41)

Offline

#20 2012-10-31 16:22:23

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Has consolekit not been replaced yet?

Let me give you an example:

$ systemctl --all|grep error
auditd.service                                                                                                 error  inactive dead          auditd.service
plymouth-quit-wait.service                                                                                     error  inactive dead          plymouth-quit-wait.service
plymouth-start.service                                                                                         error  inactive dead          plymouth-start.service
rc-local.service                                                                                               error  inactive dead          rc-local.service
syslog.service                                                                                                 error  inactive dead          syslog.service

Let's look at rc-local.service (which doesn't exist on Arch):

$ grep rc-local.service /usr/lib/systemd/system/* 2>/dev/null 
/usr/lib/systemd/system/autovt@.service:After=rc-local.service
/usr/lib/systemd/system/console-getty.service:After=rc-local.service
/usr/lib/systemd/system/console-shell.service:After=rc-local.service
/usr/lib/systemd/system/getty@.service:After=rc-local.service
/usr/lib/systemd/system/serial-getty@.service:After=rc-local.service

As you can see, there are some After= orderings on this service. This is why systemd tries to load the service. This is not a problem, since After= does not imply a dependency, just an ordering. If you don't have the service (or have it but don't enable it), this is harmless.

These errors won't go away - you will always have units that have After= or Before= on services you don't have installed. There isn't even anything to fix. If you want to see if a real error happened on your system, the following command is your friend:

systemctl --failed

Offline

#21 2012-11-01 05:29:29

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: Has consolekit not been replaced yet?

Yes, I had figured out the '| grep error' and '--failed' command options, but your explanation of systemd's orderings was very clear. Thanks brain0.

Offline

Board footer

Powered by FluxBB