Date: Fri, 5 Mar 2004 13:23:55 -0600 From: Tillman Hodgson <tillman@seekingfire.com> To: ports@freebsd.org Subject: Re: OPTIONS, LATEST_LINK, and RCng Message-ID: <20040305192355.GB8158@seekingfire.com> In-Reply-To: <066001c3fa50$e81c1cb0$cebe7726@westbend.net> References: <4039C206.9020804@fillmore-labs.com> <20040223120917.608.qmail@laurel.tmseck.homedns.org> <49785.192.168.0.185.1077562516.squirrel@mailtest.sd73.bc.ca> <403A594E.4010100@fillmore-labs.com> <49973.192.168.0.185.1077567089.squirrel@mailtest.sd73.bc.ca> <066001c3fa50$e81c1cb0$cebe7726@westbend.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 23, 2004 at 03:06:07PM -0600, Scot W. Hetzel wrote: > From: "Freddie Cash" <fcash-ml@sd73.bc.ca> > > Ah, thank you for explaining it a little better. The situations above > > makes things much clearer for me. For now, I'll leave it with the > > old, non-RCng script until I can wrap my head around the whole of RCng > > and rc-subr and how it all works. > > > Have a look at ports/security/cyrus-sasl/files/saslauthd.sh for a very > simple RCng script. > > Also read the man page for rc.subr (4.x install rc_subr port first to read > man page) > > For more complex RCng scripts look at the 5.x /etc/rc.d scripts: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d Howdy, I thought I'd pick up on this thread. I'm working on an rcNG for a port that would work similar to way that static_routes work in rc.conf: the "flags" variable would list config file names. I'd then use a "for i ${flags}; do" type statement to to look for a config file of the same name in a specific directory and, if it exists, start the program with that config file. I'd also like to parse the command line for it ... "start config1" and "stop config1", for example, with the default if unspecified meaning "all". I imagine that this is a generic problem and has already been solved in a clean and satisfactory fashion. If so, would somebody please point me to an rcNG script that does something like this? If not, any pointers as to how to safely wrap "command=" in a for look would be great :-) Thanks, -T -- "The real question is not whether machines think but whether men do." - B. F. Skinner, _Contingencies of Reinforcement_
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040305192355.GB8158>