From owner-freebsd-questions Fri Jul 19 08:21:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA01936 for questions-outgoing; Fri, 19 Jul 1996 08:21:53 -0700 (PDT) Received: from ns3.mke.ab.com (ns3.mke.ab.com [130.151.86.191]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA01910 for ; Fri, 19 Jul 1996 08:21:42 -0700 (PDT) Received: from zeus.ven.ra.rockwell.com ([130.151.17.154]) by ns3.mke.ab.com (4.1/SMI-4.1) id AA05669; Fri, 19 Jul 96 10:21:31 CDT Received: from pegasus.ven.ra.rockwell.com (pegasus.ven.ra.rockwell.com [130.151.17.156]) by zeus.ven.ra.rockwell.com (8.6.12/8.6.9) with SMTP id LAA02685 for ; Fri, 19 Jul 1996 11:20:28 -0400 Date: Fri, 19 Jul 1996 11:20:28 -0400 Message-Id: <2.2.16.19960719112832.3e671e4c@zeus.ven.ra.rockwell.com> Organization: Rockwell Automation de Venezuela X-Sender: eparis@zeus.ven.ra.rockwell.com X-Mailer: Windows Eudora Pro Version 2.2 (16) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: questions@freebsd.org From: "Eloy A. Paris" Subject: Script run at shutdown? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Is there any way to run a script at shutdown, like after invoking the commands shutdown, reboot or halt? In Linux you can do so in the script rc.0 which takes care of unmounting file systems and maintenance stuff like that. I need this because the very last thing I want to do after the system is ready to die is to tell my UPS to kill power to preserve batteries. Thanks in advance. E-loy.- -- Eloy A. Paris Global Technical Services Rockwell Automation de Venezuela Telephone: +58-2-9432311 Fax: +58-2-9430323