On Tue, Aug 26, 2014 at 10:17 PM, Jon Stanley <jonstan...@gmail.com> wrote: > On Tue, Aug 26, 2014 at 3:11 PM, Vasiliy Tolstov <v.tols...@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 <graw...@gmail.com> _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel