From owner-freebsd-questions Tue Dec 18 9:10:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from email.accessus.net (email.accessus.net [209.145.128.5]) by hub.freebsd.org (Postfix) with ESMTP id C9B7637B41A for ; Tue, 18 Dec 2001 09:10:20 -0800 (PST) Received: from [209.145.133.59] (account jkoenig@accessus.net HELO jwebmedia.com) by email.accessus.net (CommuniGate Pro SMTP 3.4.8) with ESMTP id 33453062; Tue, 18 Dec 2001 11:10:20 -0600 Message-ID: <3C1F7B93.A650C288@jwebmedia.com> Date: Tue, 18 Dec 2001 11:23:30 -0600 From: Joe Koenig Reply-To: joe@jwebmedia.com Organization: jWeb X-Mailer: Mozilla 4.77 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: Rogier Steehouder Cc: freebsd-questions@FreeBSD.ORG Subject: Re: My apache startup script doesn't work either. References: <3C1A3555.A7C12526@jwebmedia.com> <20011215100608.A462@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I took a look into this - it works if I call it by the full path name, however, it still doesn't work when the system starts up. The script is in the /usr/local/etc/rc.d/ directory on the server. I also checked to make sure it was executable. What else could be going on that would cause this script not to start at startup? Where does it actually get called from on startup? Thanks, Joe Rogier Steehouder wrote: > > 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