When systemd is fully installed, `loginctl` does not support the actions `reboot`, `poweroff` and `suspend`. Fix this by using `systemctl` if installed.
When systemd is fully installed, `loginctl` does not support the actions `reboot`, `poweroff` and `suspend`. Fix this by using `systemctl` if installed.