From owner-freebsd-current Thu Jul 6 4:24: 1 2000 Delivered-To: freebsd-current@freebsd.org Received: from cip1.melaten.rwth-aachen.de (cip1.melaten.RWTH-Aachen.DE [134.130.92.100]) by hub.freebsd.org (Postfix) with ESMTP id 5A2C037B9A9; Thu, 6 Jul 2000 04:23:56 -0700 (PDT) (envelope-from tg@melaten.rwth-aachen.de) Received: from cip12.melaten.rwth-aachen.de (cip12.melaten.rwth-aachen.de [134.130.92.12]) by cip1.melaten.rwth-aachen.de (8.9.3/8.8.8) with ESMTP id MAA28506; Thu, 6 Jul 2000 12:27:13 +0200 Received: (from tg@localhost) by cip12.melaten.rwth-aachen.de (8.9.3/8.9.3) id NAA39907; Thu, 6 Jul 2000 13:36:50 +0200 (CEST) (envelope-from tg@melaten.rwth-aachen.de) X-Authentication-Warning: cip12.melaten.rwth-aachen.de: tg set sender to tg@melaten.rwth-aachen.de using -f To: freebsd-current@freebsd.org Cc: freebsd-stable@freebsd.org Subject: HEADS UP: /etc/rc.shutdown calls local scripts now From: Thomas Gellekum Date: 06 Jul 2000 13:36:50 +0200 Message-ID: Lines: 34 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Moin, sorry for the late notice, I forgot to mail this yesterday. /etc/rc.shutdown in -current has been changed to call the scripts in ${local_startup} with the `stop' option. This allows packages like databases to call their own shutdown methods and clean up after themselves. All the ports have been changed accordingly. If you still have old startup scripts lying around in /usr/{local,X11R6}/etc/rc.d you should upgrade these ASAP. Basically, the new scripts look like this: ,---- | case "$1" in | start) | # startup code here | ;; | stop) | # shutdown code here | ;; | *) | echo "Usage: `basename $0` {start|stop}" >&2 | exit 64 | ;; | esac | exit 0 `---- -stable users: I intend to merge and activate this change shortly before the code freeze for the 4.1 release, which is July 20th, if I'm not mistaken. tg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message