From owner-freebsd-hackers Wed Jun 13 2:26:48 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 51AFF37B401 for ; Wed, 13 Jun 2001 02:26:42 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.22 #1) id 15A6vA-0003CO-00; Wed, 13 Jun 2001 12:26:40 +0300 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 15A6v9-00054E-00; Wed, 13 Jun 2001 12:26:39 +0300 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Danny Braniss , Warner Losh , Sheldon Hearn , freebsd-hackers@FreeBSD.ORG Subject: Re: Plan to import NetBSD rc system In-Reply-To: Message from Peter Pentchev of "Wed, 13 Jun 2001 12:15:25 +0300." <20010613121525.D22123@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Jun 2001 12:26:39 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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