1 |
On Wed, 26 Jun 2019 15:15:37 +0100, Mick wrote: |
2 |
|
3 |
> > > [General] |
4 |
> > > # Halt command |
5 |
> > > HaltCommand=/usr/bin/loginctl poweroff |
6 |
> > > |
7 |
> > > In an OpenRC system there is no loginctl. Consequently, unless we |
8 |
> > > define a separate config in /etc/ to use shutdown (with sudo?) it |
9 |
> > > won't work. This systemd-ism may be worth a bug report. |
10 |
> > |
11 |
> > It won't work on systemd either, loginctl has no poweroff command, it |
12 |
> > should be systemctl poweroff, which is symlinked to /sbin/poweroff |
13 |
> > here so setting it to that should work for modern and ancient systems |
14 |
> > alike :P |
15 |
> |
16 |
> Could it be loginctl is there to confirm if a local button operation |
17 |
> can run / sbin/poweroff, rather than actually running the command as |
18 |
> shown in the sddm config file? |
19 |
|
20 |
No, not when I tried it |
21 |
|
22 |
% loginctl poweroff |
23 |
Unknown operation poweroff. |
24 |
|
25 |
This is confirmed by the list of commands in the loginctl man page. |
26 |
|
27 |
|
28 |
-- |
29 |
Neil Bothwick |
30 |
|
31 |
C Error #029: Well! I'm impressed |