Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2008 21:55:28 +0000
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rc.d scripts not being run at shutdown.
Message-ID:  <20080211215528.7946615b@gumby.homeunix.com.>
In-Reply-To: <44myq7uwqu.fsf@be-well.ilk.org>
References:  <20080210040215.769f478e@gumby.homeunix.com.> <20080211180647.11a1f468@gumby.homeunix.com.> <44myq7uwqu.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Feb 2008 14:19:21 -0500
Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> wrote:

> RW <fbsd06@mlists.homeunix.com> writes:

> > I could imagine screwing-up the operation of rc.shutdown with a
> > syntax error, but I don't see how I could stop it being run at all.
> > As I understand it rc.shutdown is run from init if the file
> > exists.  init itself doesn't seem to have been modified recently,
> > so I'm out of ideas.
> 
> rc.subr and rc.conf will be sourced first, so errors in those could
> cause problems.  

That's a good point, but I just tried it with an rc.shutdown script
that contains only the touch statement, and the file wasn't touched
(and I have tried running the touch manually).

I should also add that this problem has survived a world+kernel rebuild
to 7.0-RC2, which included the use of mergemaster. All the scripts
under /etc should be the ones in the repository.

>Is anything showing up in the log?

No, just that it's rebooting and that syslog is exiting. On the
console I see the stuff that follows  the rc.shutdown, the diminishing
counters etc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080211215528.7946615b>