[comp.unix.xenix.misc] shutdown

andy@piziali.lonestar.org (Andy Piziali) (03/25/91)

There are two system administrator programs available to terminate the
operating system under IBM Xenix 1.0, running on a PC-AT: haltsys and shutdown.
haltsys immediately sync's the disks and halts the system.  shutdown, which
requires an integer time argument (in minutes), takes a while to terminate the
OS even when the value zero is specified.

What are the exact differences between these two programs?  What does shutdown
do that haltsys does not?
--
Home:	           andy@piziali.lonestar.org                |
{convex,egsner,frontier,laczko}!piziali!andy  ________------+------________
Office:                   piziali@convex.com               / \     
           {sun,texsun,uunet}!convex!piziali              *---*

peter@ficc.ferranti.com (Peter da Silva) (03/27/91)

IBM Xenix 1.0 is, I believe, based on Sustem III.

In article <1991Mar25.143633.16845@convex.com> andy@piziali.lonestar.org (Andy Piziali) writes:
> haltsys immediately sync's the disks and halts the system.  shutdown, which
> requires an integer time argument (in minutes), takes a while to terminate the
> OS even when the value zero is specified.

Haltsys syncs the disks and shuts down the system (note, though, that it
may not actually complete the sync: a sync returns immediately... it does
not wait for all the writes to complete). Shutdown kills all interactive
sessions other than the console, disable all logins, unmounts each file
system individually, makes sure that everything is tidy, and then executes
haltsys.

It's sort of like checking all the doors and windows before you go out.
-- 
Peter da Silva.  `-_-'  peter@ferranti.com
+1 713 274 5180.  'U`  "Have you hugged your wolf today?"

itkin@mrspoc.Transact.COM (Steven M. List) (03/27/91)

andy@piziali.lonestar.org (Andy Piziali) writes:

>What are the exact differences between these two programs?  What does shutdown
>do that haltsys does not?

Haltsys just shuts down the system ( I believe it shuts down the file
systems nicely).  Shutdown sends out warnings, sends signals to all the
user processes, and then goes through whatever you might have in files
in /etc/shutdown.d and stuff.  So shutdown is much friendlier to users
and does a cleaner job of shutting down the system.  Haltsys is for when
you're in a REAL hurry and don't care too much about users or database
syncs or that kinda stuff.
-- 
 +----------------------------------------------------------------------------+
 :                Steven List @ Transact Software, Inc. :^>~                  :
 :           Chairman, Unify User Group of Northern California                :
 :                         itkin@Transact.COM                                 :