Date: Wed, 13 Jun 2001 12:26:39 +0300 From: Danny Braniss <danny@cs.huji.ac.il> To: Danny Braniss <danny@cs.huji.ac.il>, Warner Losh <imp@harmony.village.org>, Sheldon Hearn <sheldonh@starjuice.net>, freebsd-hackers@FreeBSD.ORG Subject: Re: Plan to import NetBSD rc system Message-ID: <E15A6v9-00054E-00@sexta.cs.huji.ac.il> In-Reply-To: Message from Peter Pentchev <roam@orbitel.bg> of "Wed, 13 Jun 2001 12:15:25 %2B0300." <20010613121525.D22123@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
> I've asked -ports before whether it is suitable to let ports startup scripts > honor /etc/rc.conf{,.local} settings by sourcing /etc/defaults/rc.conf and > then running a source_rc_confs (or whatever is appropriate). > > This could be a solution to your problem - modify the ports' startup scripts > to honor rc.conf options, then put appropriate enable/disable options > in each machine's /etc/rc.conf or /etc/rc.conf.local. > > Attached is an example - a modification of the databases/mysql323-server > port's startup script to honor a couple of mysqld_* variables from > the RC script scheme. > > This approach has the disadvantage that the ports' startup scripts will > have to be modified if the base system startup mechanism changes, or > at least when the base system /etc/{defaults}/rc.conf{.local} parsing > mechanism changes. > > G'luck, > Peter > > -- > Do you think anybody has ever had *precisely this thought* before? > heh, it's called don't re-invent the wheel :-) i actually was thinking more in fixing rc, when it goes through the rc.d/*.sh it should check some rc.conf variable before running the script. danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15A6v9-00054E-00>