From owner-freebsd-questions@FreeBSD.ORG Wed Dec 29 00:40:09 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 1E5F516A4F8 for ; Wed, 29 Dec 2004 00:40:09 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEF9A43D2D for ; Wed, 29 Dec 2004 00:40:08 +0000 (GMT) (envelope-from joshua.lokken@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so11960wra for ; Tue, 28 Dec 2004 16:40:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=mPy5kYwQTqVq5+XNdhbchBVcCLDGrWsRGecaAMPN7JvkRW5qy+czJnNqa/p5OgQRWXEdREQq2q5LPdPXsK+mt1SSjaI0N533Bt3x5/JcfSjYv+zuLniorztd+jxftYs+UWfWcMMIt2xmHq6DUXZpresLDO7EHyjr2+1lLLBQdGc= Received: by 10.54.56.73 with SMTP id e73mr107227wra; Tue, 28 Dec 2004 16:40:08 -0800 (PST) Received: by 10.54.11.33 with HTTP; Tue, 28 Dec 2004 16:40:08 -0800 (PST) Message-ID: Date: Tue, 28 Dec 2004 18:40:08 -0600 From: Joshua Lokken To: freebsd-questions@freebsd.org In-Reply-To: <726672575.20041228234308@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <19310730556.20041226034538@wanadoo.fr> <20041225221100.3f92576f.wmoran@potentialtech.com> <8210530123.20041228223013@wanadoo.fr> <726672575.20041228234308@wanadoo.fr> Subject: Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joshua Lokken List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 00:40:09 -0000 On Tue, 28 Dec 2004 23:43:08 +0100, Anthony Atkielski wrote: > Thanks ... but what exactly do these two .sh files contain? # cat /usr/local/etc/rc.d/000.apache2libs.sh case "$1" in start) /sbin/ldconfig -m /usr/local/lib/apache2 ;; stop) ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac # cat /usr/local/etc/rc.d/apache2.sh # # $FreeBSD: ports/www/apache2/files/apache.sh,v 1.10 2004/11/13 18:23:34 clement Exp $ # # PROVIDE: apache2 # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: FreeBSD shutdown # # Add the following lines to /etc/rc.conf to enable apache2: # apache2_enable (bool): Set to "NO" by default. # Set it to "YES" to enable apache2 # apache2ssl_enable (bool): Set to "NO" by default. # Set it to "YES" to start apache with SSL # (if exists in httpd.conf) # apache2limits_enable (bool):Set to "NO" by default. # Set it to yes to run `limits $limits_args` # just before apache starts. # apache2_flags (str): Set to "" by default. # Extra flags passed to start command. # apache2limits_args (str): Default to "-e -C daemon" # Arguments of pre-start limits run. # . /etc/rc.subr name="apache2" rcvar=`set_rcvar` start_precmd="apache2_precmd" restart_precmd="apache2_checkconfig" reload_precmd="apache2_checkconfig" command="/usr/local/sbin/httpd" pidfile="/var/run/httpd.pid" required_files=/usr/local/etc/apache2/httpd.conf [ -z "$apache2_enable" ] && apache2_enable="NO" [ -z "$apache2ssl_enable" ] && apache2ssl_enable="NO" [ -z "$apache2_flags" ] && apache2_flags="" [ -z "$apache2limits_enable" ] && apache2limits_enable="NO" [ -z "$apache2limits_args" ] && apache2limits_args="-e -C daemon" load_rc_config $name checkyesno apache2ssl_enable && \ apache2_flags="-DSSL $apache2_flags" apache2_checkconfig() { echo "Performing sanity check on apache2 configuration:" ${command} -t } apache2_precmd() { if test -f /usr/local/sbin/envvars then . /usr/local/sbin/envvars fi if checkyesno apache2limits_enable then eval `/usr/bin/limits ${apache2limits_args}` 2>/dev/null else return 0 fi } sig_reload=SIGUSR1 extra_commands="reload" run_rc_command "$1" -- Joshua Lokken Open Source Advocate