The reboot command in sysvinit does sync, unless you specify the -n option:
OPTIONS -n Don't sync before reboot or halt. Note that the kernel and stor‐ age drivers may still sync. On Ubuntu, the reboot command is provided by upstart rather than by sysvinit, and the upstart version of reboot does not seem to have the -n option. So potentially it may behave differently. Where does your reboot command come from? sysvinit or upstart? Or maybe busybox? regards, Anders Widell 2014-04-01 16:36, Tony Hart skrev: > The opensaf_reboot script shuts-down the system using ‘reboot -f’ the > comment say that this command will do a filesystem sync. Is this correct? > Research on the web suggests that ‘reboot -f’ DOES NOT do a filesystem sync. > > Can anyone confirm? > > # Stop some important opensaf processes to prevent bad things from happening > $icmd pkill -STOP osafamfwd > $icmd pkill -STOP osafamfnd > $icmd pkill -STOP osafamfd > $icmd pkill -STOP osaffmd > > # Reboot (not shutdown) system WITH file system sync > $icmd /sbin/reboot -f > > > thanks > — > tony > ------------------------------------------------------------------------------ > _______________________________________________ > Opensaf-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensaf-users > > ------------------------------------------------------------------------------ _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users
