[systemd-devel] proper way to shutdown/reboot host with systemd
grawity at gmail.com
Tue Aug 26 10:56:45 PDT 2014
On Tue, Aug 26, 2014 at 7:34 PM, Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:
> Hi. What is proper way to shutdown systemd enabled host?
> I can run systemctl poweroff, do glibc call shutdown or run shutdown -P
> I'm prefer glibc call, does it proper shutdown system with systemd (and
> other init systems like sysvinit and upstart) ?
Which glibc call exactly are you referring to?
reboot() tells the kernel to shut down (or reboot) immediately – it
doesn't call init, and it doesn't even as much as sync disks.
shutdown() has nothing to do with system power state; it closes a
Mantas Mikulėnas <grawity at gmail.com>
More information about the systemd-devel