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

Mantas Mikulėnas grawity at gmail.com
Tue Aug 26 12:24:56 PDT 2014

On Tue, Aug 26, 2014 at 10:17 PM, Jon Stanley <jonstanley at gmail.com> wrote:
> On Tue, Aug 26, 2014 at 3:11 PM, Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:
>> What problem to run sync before that? I'm not understand. Also i can
>> run firfreeze ioctl to fs and run reboot. To get dirty data writed to
>> disk.
> Problem is that none of the shutdown logic of any init system (be it
> systemd, upstart, sysvinit, whatever) is ever called by calling
> reboot(). Any application shutdown which needs to happen doesn't.
> Unmounting of filesystems doesn't happen. And so forth.

Or, in other words, you're unnecessarily reinventing the wheel and the
gearbox and everything else, *and* doing it poorly at that. The whole
point of an init system is to handle these things for you...

Mantas Mikulėnas <grawity at gmail.com>

More information about the systemd-devel mailing list