From owner-freebsd-questions Mon Jan 17 17: 1:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from topsecret.net (gill.apk.net [207.54.148.62]) by hub.freebsd.org (Postfix) with SMTP id 9F90015058 for ; Mon, 17 Jan 2000 17:01:08 -0800 (PST) (envelope-from gill@topsecret.net) Received: from pacific.int.topsecret.net by topsecret.net with SMTP (MDaemon.v2.7.SP5.R) for ; Mon, 17 Jan 2000 19:58:38 -0500 Date: Mon, 17 Jan 2000 20:01:05 -0500 (EST) From: James Gill X-Sender: gill@pacific.int.topsecret.net To: freebsd-questions@FreeBSD.ORG Subject: Re: apachectl and the -f switch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MDaemon-Deliver-To: freebsd-questions@FreeBSD.ORG X-Return-Path: gill@topsecret.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sometimes just articulating the problem is the most important step in fixing it. So immediately after sending that message, having seen mention of the "stupid" apachectl "script" in the archive of this list, i decided to take a look inside that /usr/local/sbin/apachectl business and found: #!/bin/sh # # Apache control script designed to allow an easy command line interface # to controlling Apache. Written by Marc Slemko, 1997/08/23 ... # the path to your httpd binary, including options if necessary HTTPD='/usr/local/sbin/apache -f /usr/local/etc/apache/apache.conf' ... So consider the following issue resolved ;) On Mon, 17 Jan 2000, James Gill wrote: ->I can start apache with no problems by running ->/usr/local/sbin/apache -f /path/to/my/apache.conf ->by hand or in rc.local -> ->but since the newest fad is to utilize this rc.d business, i find there is ->already an apache.sh there: ->#!/bin/sh ->[ -d /usr/local/pgsql/lib ] && /sbin/ldconfig -m /usr/local/pgsql/lib ->[ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start -># > /dev/null && echo -n ' apache' -> ->Now I can't figure out how to pass a -f paramater to apachectl to tell the ->little bugger which .conf file to readin. -> ->What is suggested here? edit apache.sh to start '/usr/local/sbin/apache ->-f...' or skip the whole .../rc.d/apache.sh idea altogether? -> ->What is that /usr/local/pgsql/lib starting up with it? I am assuming it ->is some part of apache/php3 that wants (needs?) to wake up with apache? note: i still haven't found out about this part (yet). --gill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message