From owner-freebsd-questions Thu Jan 1 13:23:49 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA09458 for questions-outgoing; Thu, 1 Jan 1998 13:23:49 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.netcetera.dk (root@sleipner.netcetera.dk [194.192.207.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA09453 for ; Thu, 1 Jan 1998 13:23:45 -0800 (PST) (envelope-from leifn@image.dk) Received: (from uucp@localhost) by mail.netcetera.dk (8.8.8/8.8.8) with UUCP id WAA03401 for freebsd-questions@freebsd.org; Thu, 1 Jan 1998 22:21:27 +0100 Received: by swimsuit.swimsuit.roskildebc.dk (0.99.970109) id AA08221; 01 Jan 98 22:20:45 +0100 From: leifn@image.dk (Leif Neland) Date: 01 Jan 98 22:07:15 +0100 Subject: /etc/shutdown.d not in bsd Message-ID: <7a5_9801012220@swimsuit.swimsuit.roskildebc.dk> Organization: Fidonet: UNIX-sysadm søger job To: freebsd-questions@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. What would one do to ensure e.g. first the application using the database is shutdown, then the database itself is shutdown. Init, or the shutdown-command sends kill -15 to all running processes, the man says, but it doesn't say in which order. Am I the only one missing a neat way to do it, or do you folks out there never stop your servers? :-) Could, and would somebody implement a sysV-like shutdown.d, just as there exists a dir (or more) to start scripts at startup? I don't want to have to have a special script I have to remember to call instead just shutdown, reboot and halt. Or would this be blasfemous(sp?) against the BSD-belief to do such a sysV-thing? Leif Neland leifn@image.dk --- |Fidonet: Leif Neland 2:234/49 |Internet: leifn@image.dk