From owner-freebsd-questions@FreeBSD.ORG Mon Sep 4 23:24:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E0AF016A4E0 for ; Mon, 4 Sep 2006 23:24:11 +0000 (UTC) (envelope-from chris@childeric.freeserve.co.uk) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF8C743D88 for ; Mon, 4 Sep 2006 23:24:08 +0000 (GMT) (envelope-from chris@childeric.freeserve.co.uk) Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out3.blueyonder.co.uk with smtp (Exim 4.52) id 1GKNnS-0000P8-PK for freebsd-questions@freebsd.org; Tue, 05 Sep 2006 00:24:07 +0100 Received: from [82.35.115.93] (helo=[192.168.10.60]) by asmtp-out4.blueyonder.co.uk with esmtpa (Exim 4.52) id 1GKNnS-0002tq-9g for freebsd-questions@freebsd.org; Tue, 05 Sep 2006 00:24:06 +0100 Message-ID: <44FCB595.2030706@childeric.freeserve.co.uk> Date: Tue, 05 Sep 2006 00:24:05 +0100 From: Chris Whitehouse User-Agent: Thunderbird 1.5 (X11/20060417) MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <200608302047.06425.freebsd@dfwlp.com> <44F644DC.8030007@web.de> In-Reply-To: <44F644DC.8030007@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: not adding daemons to rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2006 23:24:12 -0000 Jona Joachim wrote: > Jonathan Horne wrote: >> ive noticed that apache can be started manually using the apachectl tool, even >> if it is not enabled in /etc/rc.conf. do many other daemons have this >> ability? i have a dev server that i would like to not have many things >> enabled in the rc.conf, but i would like an easy way to just start specific >> daemons when i need. > > Take a look at /usr/local/etc/rc.d > You will see several scripts belonging to server applications you > installed. Each one of these scripts can start or stop the service. > For example: > /usr/local/etc/rc.d/apache.sh start > /usr/local/etc/rc.d/apache.sh stop > > When you put something into rc.conf it is actually this script that is > executed, so every daemon that can be enabled in rc.conf can also be > started/stopped using those scripts. But the scripts check rc.conf so they still have to be enabled in rc.conf unless you use forcestart... box# grep pf_enable /etc/rc.conf box# pwd /etc/rc.d box# ./pf start box# echo pf_enable=\"YES\" >> /etc/rc.conf box# grep pf_enable /etc/rc.conf pf_enable="YES" box# ./pf start Enabling pf. No ALTQ support in kernel ALTQ related functions disabled No ALTQ support in kernel ALTQ related functions disabled box# Chris