Doing a clean shutdown from inside a script.

From: Erik Piip <piip_at_merl.com>
Date: Tue, 10 Aug 1999 17:13:46 -0400

        
I have an interesting question...

I've just installed APC Power Chute Plus software.... I'm a little suspicious
about how they do a system shutdown, and am looking for possible alternatives.

In normal circumstances, one would do a "shutdown time" to bring a Digital Unix
system to single user mode, then do "shutdown -h now" to get it to the
console prompt.

On several occasions in the past we did "shutdown -h now" from a fully
operation system, and ended up corrupting several log files and our NSR
index data base!!!!!

Question:

Is there a clean way to bring a system down gracefully, to the halt prompt
from inside a script???
ie: Cleanly shutdown NSR, nfs etc, unmount file system and come to a halt.....

Any thoughts and experience would be appreciated....

Regards,

        Erik
-
==================================================================
Erik Piip ph:[1]617-621-7516 fax:[1]617-621-7550
              e-mail: piip_at_merl.com
     /\ Manager of Computer Network Services
    _\/_ Mitsubishi Electric Research Laboratories
   /_/\_\ 201 Broadway, Cambridge, MA 02139
==================================================================
Received on Tue Aug 10 1999 - 20:17:08 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT