Date: Sat, 15 Dec 2001 10:06:11 +0100 From: Rogier Steehouder <r.j.s@gmx.net> To: Joe Koenig <joe@jwebmedia.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: My apache startup script doesn't work either. Message-ID: <20011215100608.A462@localhost> In-Reply-To: <3C1A3555.A7C12526@jwebmedia.com>; from joe@jwebmedia.com on Fri, Dec 14, 2001 at 11:22:30AM -0600 References: <3C1A3555.A7C12526@jwebmedia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14-12-2001 11:22 (-0600), Joe Koenig wrote: > Here is my start-up script that used to work, until I recompiled my > kernel yesteray: > > #!/bin/sh > > if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then > echo "$0: Cannot determine the PREFIX" >&2 > exit 1 > fi What the script does here is determine the PREFIX by examining the full path of the script. Unfortunately it does this by taking the called script name $0, so if you call it as './apache.sh' the full path is not available. Try manually setting the PREFIX in the script (most likely /usr/local) or call the script by the full pathname (like the system does at startup). With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> 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?20011215100608.A462>