[systemd-devel] proper way to shutdown/reboot host with systemd

Vasiliy Tolstov v.tolstov at selfip.ru
Tue Aug 26 11:54:44 PDT 2014


2014-08-26 21:32 GMT+04:00 Lennart Poettering <lennart at poettering.net>:
> From which language? From C, I'd recommend issuing the PowerOff() method
> on logind's manager object via the bus. From the shell, i'd recommend
> "systemctl poweroff", which does exactly that.


Thanks, but does it possible to shutdown system via reboot syscall for
example with LINUX_REBOOT_CMD_POWER_OFF ?

-- 
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru


More information about the systemd-devel mailing list