Date: Thu, 1 Jan 1998 14:46:56 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: Leif Neland <leifn@image.dk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/shutdown.d not in bsd Message-ID: <Pine.BSF.3.96.980101144111.22261Q-100000@localhost> In-Reply-To: <7a5_9801012220@swimsuit.swimsuit.roskildebc.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1 Jan 1998, Leif Neland wrote: > 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). > What would one do to ensure e.g. first the application using the database is > shutdown, then the database itself is shutdown. 1. exit application 2. issue shutdown command > Init, or the shutdown-command sends kill -15 to all running processes, the man > says, but it doesn't say in which order. All simultaneously, I think. > Am I the only one missing a neat way to do it, or do you folks out there never > stop your servers? :-) We hope we never have to. :-) > 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? We've told you three or four times to just use a script that kills the appropriate program(s) then calls shutdown. If you want to implement it, go for it; send patches using send-pr. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980101144111.22261Q-100000>