I had a problem with following command:
# dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanReboot
Error org.freedesktop.systemd1.UnitMasked: Unit systemd-logind.service is masked.
I don’t use this command directly, but kodi on my rpi3 with dietpi seems to do something similar for getting info about shutdown/reboot availability. I asked at kodi-forums: https://forum.kodi.tv/showthread.php?tid=359374&pid=2998375#pid2998375
The solution was this:
# sudo systemctl unmask systemd-logind.service
Removed /etc/systemd/system/systemd-logind.service.
/etc/systemd/system/systemd-logind.service seemed to link to /dev/null before
Is this dietpi-specific (don’t think I had this with raspbian)? What’s the background of this and what’s the implication of unmasking this (what I did)?
Thanks for your help!