Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2000 20:01:05 -0500 (EST)
From:      James Gill <gill@topsecret.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: apachectl and the -f switch
Message-ID:  <Pine.BSF.4.10.10001171955500.3017-100000@pacific.int.topsecret.net>
In-Reply-To: <Pine.BSF.4.10.10001171936150.3017-100000@pacific.int.topsecret.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001171955500.3017-100000>