From owner-freebsd-stable Thu Dec 27 10:16: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from viator.haloflightleader.net (adsl-63-197-56-193.dsl.lsan03.pacbell.net [63.197.56.193]) by hub.freebsd.org (Postfix) with ESMTP id 9E5DA37B41A for ; Thu, 27 Dec 2001 10:15:52 -0800 (PST) Received: from ongppla (hogan-and-hartson-llp.Washington.cw.net [208.173.12.150]) by viator.haloflightleader.net (8.11.6/8.11.6) with SMTP id fBRJ7Pp01780; Thu, 27 Dec 2001 11:07:25 -0800 (PST) (envelope-from peter@haloflightleader.net) Message-ID: <00a701c18f02$6e712560$245b1486@hhlaw.com> From: "Peter/Los Angeles, CA" To: "Josh Tolbert" Cc: References: Subject: Re: /usr/local/etc/rc.d/apache.sh question Date: Thu, 27 Dec 2001 10:15:07 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks. ----- Original Message ----- From: "Josh Tolbert" To: "Peter/Los Angeles, CA" Cc: Sent: Thursday, December 27, 2001 10:05 AM Subject: Re: /usr/local/etc/rc.d/apache.sh question > Peter, > Take a look at what the script is doing. It's checking to see if > execution was started with a full path (/usr/local/etc/rc.d/apache.sh) > instead of a relative path (./apache.sh). > When you run apachectl (startssl, I suspect), apachectl asks for > whatever passphrase you used to encrypt the SSL key. > > Good luck, > Josh > > On Thu, 27 Dec 2001, Peter/Los Angeles, CA wrote: > > > Hello, > > > > I have some understanding of how the script works, but I'm not sure what > > it's asking for. > > > > [09:37][root@interim:/usr/local/etc/rc.d]# ls > > apache.sh* > > [09:37][root@interim:/usr/local/etc/rc.d]# ./apache.sh start > > ./apache.sh: Cannot determine the PREFIX > > > > That's what I get. The following will be the contents of apache.sh: > > > > #!/bin/sh > > > > if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then > > echo "$0: Cannot determine the PREFIX" >&2 > > exit 1 > > fi > > > > case "$1" in > > start) > > [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > > > /dev/null && echo -n ' apache' > > ;; > > stop) > > [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > > > /dev/null && echo -n ' apache' > > ;; > > *) > > echo "Usage: `basename $0` {start|stop}" >&2 > > ;; > > esac > > > > exit 0 > > > > Can someone please help? If I type apachectl as I usually have done in > > Linux, it works, but now this is asking me for something. Can someone > > please help? > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-stable" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message