You are not logged in.
Pages: 1
Recently, the command "systemctl poweroff" stopped working:
$ systemctl poweroff
Failed to issue method call: Access denied
Failed to issue method call: Access denied
polkit is installed, and the command worked till about 2-3 days ago,
so I'm thinking it has to do with some update or some new package(s)...
I would be happy if someone could just point me on the way how to
investigate the issue. Most of the relevant explanations I found point to
not having polkit installed, but that's not the case.
Offline
You can start with posting the list of recently updated packages.
Does it work with sudo or as root?
Offline
It works if i do it with sudo or as root.
recently installed package list: http://pastebin.com/r6trvuGJ
Offline
Is your session being registered correctly (aka check this)?
Burninate!
Offline
Is your session being registered correctly (aka check this)?
Thank you for that link, I checked that I have the proper session registration and dbus is running:
$ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=Wed 2014-02-26 10:26:46 CET
TimestampMonotonic=1421918437
VTNr=7
Display=:0.0
Remote=no
RemoteUser=root
Service=slim
Scope=session-1.scope
Leader=293
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=stevenv
$ ps ax | grep dbus
275 ? Ss 0:03 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
800 ? S 0:00 dbus-launch --sh-syntax --exit-with-session
801 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
10309 pts/1 S+ 0:00 grep dbus
Offline
I think I isolated the problem.
The error only happens when I try to run the command from urxvtc. The urxvtd daemon is started by following the instructions on the wiki page, i.e. I have the following file:
/etc/systemd/system/urxvtd@.service
-------------------------------------------------------
[Unit]
Description=RXVT-Unicode Daemon
[Service]
Type=oneshot
RemainAfterExit=yes
User=%i
ExecStart=/usr/bin/urxvtd -q -f -o
[Install]
WantedBy=multi-user.target
Activated with:
systemctl enable urxvtd@stevenv.service
systemctl start urxvtd@stevenv.service
Then, any
systemctl poweroff
command issued from within an urxvtc process fails. I can only guess it has to do with how urxvtd is managed by systemd.
Last edited by steabert (2014-02-26 18:17:54)
Offline
Well I've been investigating this very problem for quite a long time now...
So have you found a solution to launch urxvtd but still being able to use systemctl along with it ?
Thanks for the help.
Offline
Well I've been investigating this very problem for quite a long time now...
So have you found a solution to launch urxvtd but still being able to use systemctl along with it ?
Thanks for the help.
I reverted to starting urxvtd from within .xinitrc instead of with systemd, in which case I can use the systemctl poweroff command from within an urxvtc process.
Offline
Pages: 1