From owner-freebsd-questions Fri Jul 19 4:53:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53B9637B401 for ; Fri, 19 Jul 2002 04:53:38 -0700 (PDT) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.185.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3622F43E42 for ; Fri, 19 Jul 2002 04:53:37 -0700 (PDT) (envelope-from peo@intersonic.se) Received: from terrapin.intersonic.se (terrapin.i.inter-sonic.com [192.168.1.9]) by neonpark.inter-sonic.com (8.11.4/8.11.4) with ESMTP id g6JBrEJ11166; Fri, 19 Jul 2002 13:53:20 +0200 (CEST) Message-Id: <5.1.0.14.0.20020719135041.04247cd0@mail.inter-sonic.com> X-Sender: peo@mail.inter-sonic.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 19 Jul 2002 13:53:13 +0200 To: dan@slightlystrange.org, freebsd-questions From: Per olof Ljungmark Subject: Re: Need help with apcupsd startup script In-Reply-To: <20020719111058.GB14557@catflap.home.slightlystrange.org> References: <3D37F0E2.3080902@intersonic.se> <3D37F0E2.3080902@intersonic.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 At 12:10 7/19/2002 +0100, Daniel Bye wrote: >On Fri, Jul 19, 2002 at 12:58:42PM +0200, Per olof Ljungmark wrote: > > Hi all, > > > > I am using apcupsd installed from ports with no mods. > > apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh > > returns: > > apcupsd.sh: Cannot determine the PREFIX > > when I try it. > > I assume there are some Linux specific paths in there? > > >How are you calling the script? You must give the absolute path on >the command line, or the first block (if ! ...) will make it bomb out >with the error message. > >HTH > >Dan You are correct. /usr/local/etc/rc.d/apcupsd.sh start|stop will work. Now, how would I modify the script to make "sh apcupsd.sh start|stop" executed from /usr/local/etc/rc.d/ work? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message