I checked the source code of busybox, and it also performs a sync just 
like sysvinit:

         if (!(flags & 2)) /* no -n */
                 sync();

         /* Perform action. */
         rc = 1;
         if (!(flags & 4)) { /* no -f */

         [...]

         } else {
                 rc = reboot(magic[which]);
         }

regards,
Anders Widell

2014-04-01 17:08, Tony Hart skrev:
> Hi Anders,
> Yes in this particular case it would be busybox.
>
> On Apr 1, 2014, at 10:56 AM, Anders Widell <[email protected]> wrote:
>
>> 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

Reply via email to