UNIX 'sync' with reboot, halt and wait options