From owner-freebsd-questions Tue Jun 25 20:33:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA00518 for questions-outgoing; Tue, 25 Jun 1996 20:33:06 -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 UAA00506 for ; Tue, 25 Jun 1996 20:32:57 -0700 (PDT) Received: from zeus.ven.ra.rockwell.com ([130.151.17.154]) by ns3.mke.ab.com (4.1/SMI-4.1) id AA22271; Tue, 25 Jun 96 22:32:40 CDT Received: from slip2.ven.ra.rockwell.com (slip2.ven.ra.rockwell.com [130.151.17.163]) by zeus.ven.ra.rockwell.com (8.6.12/8.6.9) with SMTP id XAA12578 for ; Tue, 25 Jun 1996 23:32:16 -0400 Date: Tue, 25 Jun 1996 23:32:16 -0400 Message-Id: <2.2.16.19960625233316.33ffb63e@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, My apologies for this question that may be stupid but I am more System V oriented than BSD: is there any way to run a script at shutdown, like after invoking the commands shutdown, reboot or halt? In System V 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