Есть ли в openrc аналог безрутовых команд systemd
systemctl poweroff
systemctl reboot
Есть ли в openrc аналог безрутовых команд systemd
systemctl poweroff
systemctl reboot
Самое простое настроить через sudo. Также можно выполнять выключение/перезагрузку через consolekit.
Может кому пригодится решил так
alias poweroff='dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop'
alias reboot='dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart'