Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jul 2000 00:12:19 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        obrien@FreeBSD.org
Cc:        Robert Watson <rwatson@FreeBSD.org>, Sheldon Hearn <sheldonh@uunet.co.za>, Brian Somers <brian@Awfulhak.org>, Thomas Gellekum <tg@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc.shutdown 
Message-ID:  <200007080712.AAA92429@netplex.com.au>
In-Reply-To: Message from "David O'Brien" <obrien@FreeBSD.org>  of "Fri, 07 Jul 2000 23:19:06 PDT." <20000707231906.B88142@dragon.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
"David O'Brien" wrote:
> On Thu, Jul 06, 2000 at 05:44:33PM -0700, Peter Wemm wrote:
> > I have previously implemented /etc/shutdown.d and /usr/local/etc/shutdown.d
> > to avoid the confusion about what happens when /etc/rc.shutdown
> > calls "/usr/local/etc/rc.d/apache.sh stop" and the old apache.sh doesn't
> > check $1 and starts up instead.
> 
> I'd rather make "stop" required in ports and call with it in current.
> Then a 'HEADS UP' to -current.  The added functionally is just too nice
> not to have.

Oh yes, the other problem with doing it this way is that you cannot have
a different sort order for startup vs. shutdown.   These are run by a
'*' glob - so the shutdown order is the same as startup - it should be
reverse.

eg: if you start mysql first, then apache, you want to shut down apache first
before stopping mysql.  Using the same rc.d thing prevents the ability to
do this unless people want to get tricky with 'sort -r' etc. 

Right now, you have to stick a number in front of 'mysql.sh' to make it
glob before 'apache.sh'.

By all means, use start/stop args, but hard link the .sh files into seperate
directories or something so that the order can be tweaked..

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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