From owner-freebsd-questions Sun Mar 3 13:54:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by hub.freebsd.org (Postfix) with ESMTP id B9D1D37B400 for ; Sun, 3 Mar 2002 13:54:19 -0800 (PST) Received: from scaryg.shacknet.nu ([64.231.142.145]) by tomts11-srv.bellnexxia.net (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020303215414.MKDD17400.tomts11-srv.bellnexxia.net@scaryg.shacknet.nu>; Sun, 3 Mar 2002 16:54:14 -0500 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.34 #1) id 16hdyc-0000OJ-00; Sun, 03 Mar 2002 16:57:06 -0500 Date: Sun, 3 Mar 2002 16:57:05 -0500 From: ScaryG To: Server Admin Cc: freebsd-questions@freebsd.org Subject: Re: Help needed with UPS startup script Message-Id: <20020303165705.4a736183.freymann@scaryg.shacknet.nu> In-Reply-To: <3.0.5.32.20020303145703.011a8260@mail.sage-one.net> References: <3.0.5.32.20020303145703.011a8260@mail.sage-one.net> X-Mailer: Sylpheed version 0.7.2 (GTK+ 1.2.10; i386-portbld-freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean 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 On Sun, 03 Mar 2002 14:57:03 -0600 Server Admin wrote: > everything else (I think) running online fine, EXCEPT the > "/usr/local/etc/rc.d/apcupsd.sh" boot startup script. The script dies at > the beginning because it "Cannot determine the PREFIX" ...figured path > is wrong and is for Linux structure. Were you trying to "test" the script from the command prompt? by being in the /usr/local/etc/rc.d directory and typing ./apcupsd.sh ? The "Cannot determine the PREFIX" error will pop up if you do this. To test the script, you must use the full path /usr/local/etc/rc.d/apcupsd.sh start Now it can determine the prefix. Hopefuly you can recover the script in its original form (before you edited it). I would suggest you retrieve the original. Gerry - Web/Domain Hosting -- Primary/Secondary DNS Services at http://www.interpool.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message