From owner-freebsd-ports Mon Apr 1 7:38:58 2002 Delivered-To: freebsd-ports@freebsd.org Received: from leviathan.inethouston.net (leviathan.inethouston.net [66.64.12.249]) by hub.freebsd.org (Postfix) with ESMTP id 589BA37B41D for ; Mon, 1 Apr 2002 07:38:53 -0800 (PST) Received: by leviathan.inethouston.net (Postfix, from userid 1001) id 5E08D3198D5; Mon, 1 Apr 2002 09:38:55 -0600 (CST) Date: Mon, 1 Apr 2002 09:38:55 -0600 From: "David W. Chapman Jr." To: Sergei Vyshenski Cc: freebsd-ports@FreeBSD.ORG Subject: Re: PREFIX of Apache Message-ID: <20020401153855.GB22921@leviathan.inethouston.net> Reply-To: "David W. Chapman Jr." Mail-Followup-To: "David W. Chapman Jr." , Sergei Vyshenski , freebsd-ports@FreeBSD.ORG References: <5.1.0.14.2.20020401191217.00ac5400@vivaldi.pn.sinp.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20020401191217.00ac5400@vivaldi.pn.sinp.msu.ru> User-Agent: Mutt/1.3.28i X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Apr 01, 2002 at 07:34:03PM +0400, Sergei Vyshenski wrote: > Dear experts, > > Port apache-1.3.24_1 installs startup script /usr/local/etc/rc.d/apache.sh > with the following lines: > > > if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then > echo "$0: Cannot determine the PREFIX" >&2 > exit 1 > fi > > > This naturally dies with "Cannot determine the PREFIX". > Had to substitute these 4 lines with You don't get this error if you run /usr/local/etc/rc.d/apache/sh start you have to use the path, its the only way to determine the PREFIX from the script. -- David W. Chapman Jr. dwcjr@inethouston.net Raintree Network Services, Inc. dwcjr@freebsd.org FreeBSD Committer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message