From owner-freebsd-questions Tue Jan 18 13:23: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 8AC4814FDA for ; Tue, 18 Jan 2000 13:22:57 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat34.x-treme.gr [212.120.197.226]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id XAA14392; Tue, 18 Jan 2000 23:22:38 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id PAA46621; Tue, 18 Jan 2000 15:44:03 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Tue, 18 Jan 2000 15:44:03 +0200 From: Giorgos Keramidas To: James Gill Cc: freebsd-questions@FreeBSD.ORG Subject: Re: apachectl and the -f switch Message-ID: <20000118154403.A6642@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 17, 2000 at 07:40:17PM -0500, 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? You can edit the script to suit your needs. The scripts in the /usr/local/etc/rc.d directory are there for you to customize at will. > 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? If you have apache compiled with php3, and php3 with postgresql support (PostgreSQL is one of the databases supported by php3), you might find it annoying to have many scripts, say postgresql.sh, php3.sh and apache.sh and remember that they should be executed in the right order. This takes automatically care of updating the ldconfig cache by `merging' (that's what the -m option means for ldconfig(1)) the information about any libraries that postgresql might require/provide. Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Don't let your schooling interfere with your education." [??] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message