Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2005 09:01:22 -0400
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        JM <jmartin37@speakeasy.net>
Cc:        Doug Barton <dougb@FreeBSD.org>, freebsd-rc@FreeBSD.org
Subject:   Re: Use of rcorder for local rc.d/*.sh scripts
Message-ID:  <20050617130122.GL16676@linwhf.opal.com>
In-Reply-To: <42B05C7C.6060301@speakeasy.net>
References:  <42A8A91B.8000402@FreeBSD.org> <20050609210223.GB16168@odin.ac.hmc.edu> <20050612121504.K844@ync.qbhto.arg> <20050613005533.GA28966@odin.ac.hmc.edu> <42AD19C9.2040403@FreeBSD.org> <20050613155211.GB19722@odin.ac.hmc.edu> <20050614134732.GB16676@linwhf.opal.com> <20050614172740.GC20371@odin.ac.hmc.edu> <20050615162948.GG16676@linwhf.opal.com> <42B05C7C.6060301@speakeasy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 15, 12:51, JM wrote:
> >
> >	rcorder and process all the remianing local scripts
> >		(rcorder will include non-tagged files at the
> >		end of its sorted list, so these are included here
> >		too):
> >
> >		- warn and don't run non-executable files
> >
> >		- warn and don't run files named "*.sample",
> >		  "*.bak", "*.orig" etc
> >
> >		- warn (suggesting name change) but do run (in
> >		  subshell) files named "[^0-9]*.sh" without
> >		  new RC_SUBR keyword
> >
> >		- quietly run (as sourced file) files named
> >		  "[^0-9]*.sh" which have new RC_SUBR keyword
> >		  (but note that we're in localpkg here, not
> >		  /etc/rc so sourcing not quite the same, unless
> >		  we do move this functionality into /etc/rc now)
> >
> >		- quietly run (in subshell) all other files with
> >		  rcorder tags
> >
> >		- warn and don't run any remaining files
> > 
> >
> shouldn't rcorder be run through /usr/local/etc/rc.d before it searches 
> for and executes *.sh files?  perhaps mimic the current /etc/rc.d 
> mechanism where a piece of rcorder includes "local package 
> initialization" (which could be potentially renamed to "starting legacy 
> .sh scripts" that runs as a part of rcorder...  basically nesting a 
> mirror image of rcorder within the main rcorder that runs through 
> /etc/rc.d... this is the only suggestion i have with my limited 
> knowledge of rc scripts.  if it sounds dumb just disregard >.>
> 
> but i would think that you would want to put more emphasis on change, 
> and executing rcorder scripts first would help to ensure this. 
> 

Other than finding and running local files named [0-9]*.sh first,
I am proposing that rcorder then be used to sort the rest, so files
named foo.sh and foo will be run in the rcordered order, regardless
of suffix.

The only reason to run files named [0-9]*.sh first is to preserve
current behavior during the transition period.  This part will go
in the final version.

	-jr



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