Date: Thu, 11 Feb 1999 12:38:16 -0800 (PST) From: philip@eilio.com To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/10035: 3.0-STABLE, rc.shutdown is still ignored. Message-ID: <199902112038.MAA13676@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 10035 >Category: bin >Synopsis: 3.0-STABLE, rc.shutdown is still ignored. >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 11 12:40:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Philip Hallstrom >Release: 3.0-19990209-STABLE >Organization: >Environment: FreeBSD burlap.eilio.com 3.0-19990209-STABLE FreeBSD 3.0-19990209-STABLE #1: Tue Feb 9 23:55:45 PST 1999 root@burlap.eilio.com:/usr/src/sys/compile/BURLAP i386 >Description: When I do "shutdown -r now", rc.shutdown does not get run -- even though the man page says it will. >How-To-Repeat: Put "echo foo" in rc.shutdown, and then do a "shutdown -r now" >Fix: I wouldn't even begin to guess :) I do have a suggestion though. Why not add "local_shutdown" (similar to local_startup) to rc.conf, then add: ----------------------------------------------------------------------- # If there is a global system configuration file, suck it in. # if [ -f /etc/rc.conf ]; then . /etc/rc.conf fi # for each valid dir in $local_shutdown, search for init scripts matching *.sh if [ "X${local_shutdown}" != X"NO" ]; then echo -n 'Local package de-initialization:' for dir in ${local_shutdown}; do [ -d ${dir} ] && for script in ${dir}/*.sh; do [ -x ${script} ] && \ (trap 'exit 1' 2 ; ${script} stop ; echo -n) done done echo . fi --------------------------------------------------------------------------- to rc.shutdown. This way, we don't have to edit rc.shutdown (which to me is like editing rc), but we still get all the cool features :) (And yes, I come from a Solaris background so I am used to all the rc.d dirs -- whether that's a good thing or not... I know I'm not going back :) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902112038.MAA13676>