From owner-freebsd-questions@FreeBSD.ORG Mon May 17 10:54:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E46E116A4CF for ; Mon, 17 May 2004 10:54:05 -0700 (PDT) Received: from mailtest.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A14E43D55 for ; Mon, 17 May 2004 10:54:05 -0700 (PDT) (envelope-from fcash-ml@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id 73984731BE; Mon, 17 May 2004 10:54:05 -0700 (PDT) Received: from mailtest.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70978-04; Mon, 17 May 2004 10:54:05 -0700 (PDT) Received: from [192.168.0.166] (unknown [192.168.0.166]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id 41415733D6; Mon, 17 May 2004 10:54:05 -0700 (PDT) From: Freddie Cash Organization: School District 73 To: Date: Mon, 17 May 2004 10:53:57 -0700 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405171053.57758.fcash-ml@sd73.bc.ca> X-Virus-Scanned: by amavisd-new at sd73.bc.ca cc: questions@freebsd.org Subject: Re: Manually starting RCng scripts disabled in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fcash-ml@sd73.bc.ca List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2004 17:54:06 -0000 On May 17, 2004 10:16 am, JJB wrote: > There are no knobs in rc.conf for the applications you mentioned. > Rc.conf does not have internal check to verify you have correct > statements. So having apache_enable="YES" in rc.conf does nothing > and issues no error message telling you it is invalid. All ports > are started from /usr/local/etc/rc.d/ This is true only for non-RCng scripts that have the generic case statement with start/stop options. For instance, the www/apache13 port prior to around 1.3.29_4 used the old rc-style script. After that, it uses an RCng script which requires an entry in rc.conf to activate. Read through the comments in /usr/ports/www/apache13/files/apache.sh if you don't have it installed to see what I mean. RCng scripts require an entry in /etc/rc.conf along the lines of _enable="YES" otherwise the script will fail to do anything. This works great for starting scripts at boot time as everything is configured / controlled via one central file. However, it's more of a pain than anything when you don't want the app to start at bootup, but want to start the app manually later on. There are workarounds by changing the name of the startup script or editing rc.conf. I'm just wondering if there is anything built into RCng for this situation. Please CC: me as I'm not sub'd to questions@. -- Freddie Cash fcash-ml@sd73.bc.ca