The man page for polkitd says:

... Users or administrators should never need to start this daemon as it will be automatically started by dbus-daemon(1) ...

Therefore polkitd will be restarted when dbus service is restarted. Since this service interacts with the desktop manager it is safer to log out of the desktop session, stop xdm service, restart dbus and start xdm again.

Answer from Dima Chubarov on Stack Exchange
🌐
Red Hat
access.redhat.com › solutions › 3015851
How to restart polkitd - Red Hat Customer Portal
June 14, 2024 - My polkit is not latest version so it consumed a lot of memory. I know I can fix this issue by updating polkit but I'd like to release memory by restarting polkitd before updating the package. How
🌐
Ask Ubuntu
askubuntu.com › questions › 1540026 › polkit-rule-for-reboot-ignored
policykit - Polkit rule for reboot ignored - Ask Ubuntu
Restart the polkit service: sudo systemctl restart polkit · and, in our case, users can no longer power off, reboot, hibernate, etc. our machines. In most (though not all) cases, those options disappear from the GUI menu entirely.
🌐
OpenMandriva
forum.openmandriva.org › support
Failed to start polkit.service - Support - OpenMandriva forum
December 3, 2023 - Hello, _OpenMandriva Lx version:_Rock 5.0 Desktop environment (KDE, LXQT…): KDE; LXQt Description of the issue (screenshots if relevant): _Relevant informations (hardware involved, software version, logs or output…):_in VirtualBox When I start my upgraded OpenMandriva Rock to Version 5.0 the Error-message is given: [FAILED] Failed to start polkit.service Here the journalctl → https://pastebin.pl/view/19b1b02c How can I repair this? with regards Ch.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[solved] polkit fails to start / Applications & Desktop Environments / Arch Linux Forums
August 4, 2023 - [root@succubus ~]# sudo -u polkitd -g polkitd /usr/lib/polkit-1/polkitd -r Error switching to user polkitd: Error clearing groups: Operation not permitted
Find elsewhere
🌐
Mageia
bugs.mageia.org › show_bug.cgi
16319 – Polkit does not restart automatically after being updated
November 11, 2015 - Assignee: bugsquad => mageia · CC: (none) => ozkyster
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-security-4 › policy-kit-does-not-allow-to-restart-a-service-despite-an-adequate-rule-4175697329
[SOLVED] Policy Kit does not allow to restart a service, despite an adequate rule
July 6, 2021 - As nagios user, I cannot execute systemctl. Tracking it down to pkexec, I get : Code: -sh-4.2 pkexec systemctl reload nagios ==== AUTHENTICATING FOR
🌐
Ubuntu Wiki
wiki.ubuntu.com › DebuggingPolicykit
DebuggingPolicykit - Ubuntu Wiki
December 8, 2015 - This will stop the polkit-gnome-authentication-agent-1 process (if running) and restart it redirecting all output (including the desired debugging information) to /tmp/polkit-gnome-authentication-agent-1.log. Please note that there is another variable set in this case: POLKIT_DEBUG=1.
🌐
SUSE
suse.com › support › kb › doc
SUSE Customer Portal
Loading · ×Sorry to interrupt · Refresh
🌐
Server Fault
serverfault.com › questions › 905984 › centos-polkit-allowing-user-to-restart-specific-service
Centos/Polkit - allowing user to restart specific service - Server Fault
April 4, 2018 - Either I allow that user free use of org.freedesktop.systemd1.manage-units which lets them restart any service or none.
🌐
Hyprland Wiki
wiki.hypr.land › Hypr-Ecosystem › hyprpolkitagent
hyprpolkitagent – Hyprland Wiki
13 hours ago - It is required for GUI applications to be able to request elevated privileges. If it’s not available in your distro’s repositories, you can either build it from source or use a different agent, e.g. KDE’s one. Add systemctl --user start hyprpolkitagent to your Hyprland config’s autostart ...
🌐
GitHub
github.com › Arksine › moonraker › issues › 349
PolicyKit warnings; unable to manage services, restart system, or update packages · Issue #349 · Arksine/moonraker
January 28, 2022 - For example, you can run systemctl restart klipper without sudo. Newer versions of PolKit (those included in Arch, etc) allow for more fine grained rules, only the Moonraker process will be granted such privileges.
Author   Arksine
🌐
Daniel Lange's Blog
daniel-lange.com › archives › 194-Polkitd-Policy-Kit-Daemon-in-Trixie-...-allowing-remote-users-to-suspend,-reboot,-power-off-the-local-system.html
Polkitd (Policy Kit Daemon) in Trixie ... allowing remote users to suspend, reboot, power off the local system | Daniel Lange's blog
Polkit has nothing to do with sudo, the command. It is a different way to elevate privileges. And that works well with Debian's /usr/sbin/reboot and /usr/sbin/poweroff which are symlinks to /bin/systemctl these days.
🌐
GitHub
github.com › Arksine › moonraker › issues › 451
[bug] restart dbus service when installing policykit · Issue #451 · Arksine/moonraker
June 18, 2022 - + sudo systemctl restart dbus + sudo systemctl restart moonraker + fi +} + CLEAR="n" ROOT="n" DISABLE_SYSTEMCTL="n" @@ -140,12 +149,10 @@ fi if [ "$CLEAR" = "y" ]; then clear_polkit_rules + restart_services else set -e check_moonraker_service ...
Author   Arksine
🌐
Stack Exchange
unix.stackexchange.com › questions › 685674 › polkit-rule-to-allow-a-user-restart-systemd-service
linux - Polkit rule to allow a user restart systemd service - Unix & Linux Stack Exchange
January 9, 2022 - I created /etc/polkit-1/rules.d/00-manage-docker-daemon.rules file with following rule to allow members of "agroup" to administer (stop/start/restart) docker.service (Centos 7):
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1115649 – installation does not restart polkitd
Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla · RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue ...