From owner-freebsd-ports Thu Mar 13 23:18:43 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C6C37B401 for ; Thu, 13 Mar 2003 23:18:41 -0800 (PST) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 429C543F85 for ; Thu, 13 Mar 2003 23:18:41 -0800 (PST) (envelope-from DougB@freebsd.org) Received: from master.gorean.org (12-234-22-23.client.attbi.com[12.234.22.23]) by rwcrmhc51.attbi.com (rwcrmhc51) with SMTP id <20030314071840051000r4q0e>; Fri, 14 Mar 2003 07:18:40 +0000 Date: Thu, 13 Mar 2003 23:18:40 -0800 (PST) From: Doug Barton To: Richard Nyberg Cc: ports@freebsd.org Subject: Re: port rc.d files In-Reply-To: <20030313100830.GA30175@murmeldjur.it.su.se> Message-ID: <20030313231023.R1839@znfgre.tberna.bet> References: <20030313100830.GA30175@murmeldjur.it.su.se> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 13 Mar 2003, Richard Nyberg wrote: > Couldn't the files in /usr/local/etc/rc.d use /etc/rc.conf > for configuration? Ie. for the openldap21 port the rc file > could check for slapd_enable and slapd_flags in /etc/rc.conf. > > This would make it easier to have port installations > in distributed filesystems like AFS. Maybe you have > many computers with the same port installation but > you only want one to start slapd. It would also > make system configuration more coherent. > > I'm thinking something like, but maybe less complex than, > /etc/rc.d in CURRENT. What do you think? I don't see any reason why you couldn't use _enable variables to control stuff in /usr/local/etc/rc.d. I would suggest that /etc/rc.conf.local is a better place to put them though. /etc/rc.conf kind of implies that /etc/defaults/rc.conf might be involved at some point, which obviously wouldn't be appropriate for ports. Also, it may interest you to know that now that the /etc/rc.subr api is more or less stable, we've been seriously considering importing it into RELENG_4, specifically for use by the ports. There are plusses and minuses to this approach, but so far it looks like more plus than minus. Anyone interested in discussing this further is welcome to join/post to freebsd-rc@yahoogroups.com. Doug -- This .signature sanitized for your protection To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message