From owner-freebsd-questions Sun Mar 3 14: 4:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-64-219-20-209.dsl.crchtx.swbell.net [64.219.20.209]) by hub.freebsd.org (Postfix) with ESMTP id 8E56237B405 for ; Sun, 3 Mar 2002 14:04:45 -0800 (PST) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g23M4gp14274; Sun, 3 Mar 2002 16:04:42 -0600 (CST) (envelope-from admin@sage-one.net) Message-Id: <3.0.5.32.20020303160441.011ce1b8@mail.sage-one.net> X-Sender: admin@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 03 Mar 2002 16:04:41 -0600 To: ScaryG From: Server Admin Subject: Re: Help needed with UPS startup script Cc: freebsd-questions@freebsd.org In-Reply-To: <20020303165705.4a736183.freymann@scaryg.shacknet.nu> References: <3.0.5.32.20020303145703.011a8260@mail.sage-one.net> <3.0.5.32.20020303145703.011a8260@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 Thanks! That was it... I had merely launched the script from the command line incorrectly.... At 04:57 PM 3.3.2002 -0500, ScaryG wrote: >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 > > .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message