From owner-freebsd-stable@FreeBSD.ORG Tue Feb 1 14:16:30 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DE341065673 for ; Tue, 1 Feb 2011 14:16:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 52D018FC17 for ; Tue, 1 Feb 2011 14:16:30 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A804.dip.t-dialin.net [87.179.168.4]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 4938F844010; Tue, 1 Feb 2011 15:16:25 +0100 (CET) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 26D61267E; Tue, 1 Feb 2011 15:16:20 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p11EG3F6099555; Tue, 1 Feb 2011 15:16:03 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 01 Feb 2011 15:16:03 +0100 Message-ID: <20110201151603.96603jakaxzuxrwg@webmail.leidinger.net> Date: Tue, 01 Feb 2011 15:16:03 +0100 From: Alexander Leidinger To: Yue Wu References: <20110201123506.GA97242@fbsd.t60.cpu> In-Reply-To: <20110201123506.GA97242@fbsd.t60.cpu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 4938F844010.A60F5 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.874, required 6, autolearn=disabled, J_CHICKENPOX_21 0.60, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1297174585.57794@48YqLp6wEtdwUv/DLvgt9A X-EBL-Spam-Status: No Cc: ml-freebsd-stable Subject: Re: Is /etc/rc.conf scriptable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 14:16:30 -0000 Quoting Yue Wu (from Tue, 1 Feb 2011 20:35:06 +0800): > 2. check if bitlbee has been installed, if so, then let bitlbee > service start. > > > So I tried with following settings in rc.conf, but all of them failed, > i.e., the networking can't be connected and bitlbee service doesn't > run. > > /etc/rc.conf > if [ -x /usr/local/sbin/bitlbee ]; then > bitlbee_enable="YES" > fi If it is not installed, there will be no rc.d script for it, so nothing will happen. This means you just can add bitlbee_enable="YES" unconditionally, and no error/warning message will show up during boot. Bye, Alexander. -- There's no time like the present for postponing what you don't want to do. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137