haltsys/reboot vrs. shutdown (was Re: init's untimely death.)

Paul De Bra debra at alice.UUCP
Sat Jul 8 04:55:57 AEST 1989


In article <3663 at ddsw1.MCS.COM> karl at ddsw1.MCS.COM (Karl Denninger) writes:
>...
>Haltsys is a clean shutdown.  It doesn't terminate processes -- which means
>that any programs that were running don't get the chance to get signalled
>and quit cleanly -- but it DOES sync the disks, unmount them (effectively
>though not though the "umount" system service), and take the system down 
>cleanly.
>...
Beware!
Though haltsys tries to sync the disks before halting the system it may
fail to take care of processes that are still writing files while the
sync is in process. (In the case of an almost locked up system this may
not be a big problem.)

I have tried and succeeded in combining running processes with haltsys
to obtain a corrupted file system (which is marked as "clean" by haltsys).
Running fsck on the filesys did reveal inconsistencies, but you won't
notice this immediately if you don't perform fsck manually, cause the
boot process will believe the file systems are clean.

The heart of the problem is that haltsys does not kill the running
processes *before* syncing the disk, and that the search for buffers
to flush is not fail-safe.

Paul.
-- 
------------------------------------------------------
|debra at research.att.com   | uunet!research!debra     |
------------------------------------------------------



More information about the Comp.unix.xenix mailing list