From owner-freebsd-questions Sun Jan 4 23:14:39 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA10699 for questions-outgoing; Sun, 4 Jan 1998 23:14:39 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from wcc.wcc.net (wcc.wcc.net [208.6.232.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA10692 for ; Sun, 4 Jan 1998 23:14:35 -0800 (PST) (envelope-from detlev!joelh@wcc.wcc.net) Received: from detlev.UUCP (ppp71.wcc.net [208.6.232.71]) by wcc.wcc.net (8.8.7/8.8.7) with ESMTP id BAA05950; Mon, 5 Jan 1998 01:10:54 -0600 (CST) Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.7) id BAA00324; Mon, 5 Jan 1998 01:13:58 -0600 (CST) (envelope-from joelh) Date: Mon, 5 Jan 1998 01:13:58 -0600 (CST) Message-Id: <199801050713.BAA00324@detlev.UUCP> To: Doug White Subject: Re: /etc/shutdown.d not in bsd From: Joel Ray Holveck Reply-to: joelh@gnu.org CC: freebsd-questions@freebsd.org References: <199801021421.GAA04109@hub.freebsd.org> Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> Being used to /etc/shutdown.d in SysV, I can't understand BSD can >> do without it. >> In sysV, /etc/shutdown.d contains scripts to shutdown system >> services etc. at shutdown in a proper and orderly way; the scripts >> are executed in alfabetical order. > Because the system will shut them down for you. When the system is > halted, every process is sent a SIGTERM (signal 15). most processes will > then exit gracefully. (Some evil ones that mask SIGTERM then get a > SIGKILL to finish them off). He means to ensure that, for instance, a process which dies with runtime summaries is killed before syslogd; a client which send a shutdown message to its server is killed before PPP, etc. This is done by /etc/rc.shutdown, as mentioned in init(8). Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped