From owner-freebsd-hackers Thu Jun 14 0:49:29 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 120B937B409 for ; Thu, 14 Jun 2001 00:49:19 -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 15ARsO-00020L-00; Thu, 14 Jun 2001 10:49:12 +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 15ARsN-00062o-00; Thu, 14 Jun 2001 10:49:11 +0300 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Peter Pentchev Cc: Warner Losh , Sheldon Hearn , freebsd-hackers@FreeBSD.ORG Subject: rc, was: 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: Thu, 14 Jun 2001 10:49:11 +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). my suggestion: this is the 'modified' loop for the ${local_startup} in /etc/rc: case ${local_startup} in [Nn][Oo] | '') ;; *) echo -n 'Local package initialization:' for dir in ${local_startup}; do if [ -d "${dir}" ]; then for script in ${dir}/*.sh; do s=`basename ${script} .sh` v=`eval echo '$'${s}_enable|dd conv=ucase` if [ -x "${script}" -a ${v} = YES ]; then (set -T trap 'exit 1' 2 ${script} start) fi done fi done echo '.' ;; esac you just add: mysql_enable="YeS" danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message