On Wed, 26 Jun 2019 15:15:37 +0100, Mick wrote: > > > [General] > > > # Halt command > > > HaltCommand=/usr/bin/loginctl poweroff > > > > > > In an OpenRC system there is no loginctl. Consequently, unless we > > > define a separate config in /etc/ to use shutdown (with sudo?) it > > > won't work. This systemd-ism may be worth a bug report. > > > > It won't work on systemd either, loginctl has no poweroff command, it > > should be systemctl poweroff, which is symlinked to /sbin/poweroff > > here so setting it to that should work for modern and ancient systems > > alike :P > > Could it be loginctl is there to confirm if a local button operation > can run / sbin/poweroff, rather than actually running the command as > shown in the sddm config file?
No, not when I tried it % loginctl poweroff Unknown operation poweroff. This is confirmed by the list of commands in the loginctl man page. -- Neil Bothwick C Error #029: Well! I'm impressed
pgpqQaSUjMiYV.pgp
Description: OpenPGP digital signature