implemented user-mode reboot and poweroff