You are not logged in.

#1 2015-05-20 20:45:27

stozi
Member
Registered: 2010-03-02
Posts: 149

polkit dead?

Why?

$ systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:polkit(8)
$ sudo systemctl enable polkit.service
[sudo] password for xxxx: 
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out

Offline

#2 2015-05-20 21:31:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: polkit dead?

What do you need it for?

Even though I too got

$ systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:polkit(8)

After running

$ sudo systemctl enable polkit.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

I now get

$ systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
   Active: active (running) since Wed 2015-05-20 23:27:32 CEST; 15s ago
     Docs: man:polkit(8)
 Main PID: 23712 (polkitd)
   CGroup: /system.slice/polkit.service
           └─23712 /usr/lib/polkit-1/polkitd --no-debug
May 20 23:27:32 b161 polkitd[23712]: Started polkitd version 0.112
May 20 23:27:32 b161 systemd[1]: Starting Authorization Manager...
May 20 23:27:32 b161 polkitd[23712]: Loading rules from directory /etc/polkit-1/rules.d
May 20 23:27:32 b161 polkitd[23712]: Loading rules from directory /usr/share/polkit-1/rules.d
May 20 23:27:32 b161 polkitd[23712]: Finished loading, compiling and executing 1 rules
May 20 23:27:32 b161 systemd[1]: Started Authorization Manager.
May 20 23:27:32 b161 polkitd[23712]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
May 20 23:27:32 b161 polkitd[23712]: Registered Authentication Agent for unix-process:23709:37176208 (system b...POSIX)
May 20 23:27:33 b161 polkitd[23712]: Unregistered Authentication Agent for unix-process:23709:37176208 (system...m bus)
Hint: Some lines were ellipsized, use -l to show in full.

Offline

Board footer

Powered by FluxBB