On Tue, 26.08.14 20:34, Vasiliy Tolstov ([email protected]) wrote: > Hi. What is proper way to shutdown systemd enabled host? > I can run systemctl poweroff, do glibc call shutdown or run shutdown -P > now... > I'm prefer glibc call, does it proper shutdown system with systemd (and > other init systems like sysvinit and upstart) ?
>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. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
