Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 22:02:27 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Per olof Ljungmark <peo@intersonic.se>
Cc:        dan@slightlystrange.org, freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Need help with apcupsd startup script
Message-ID:  <20020719120227.GG577@k7.mavetju>
In-Reply-To: <5.1.0.14.0.20020719135041.04247cd0@mail.inter-sonic.com>
References:  <3D37F0E2.3080902@intersonic.se> <3D37F0E2.3080902@intersonic.se> <5.1.0.14.0.20020719135041.04247cd0@mail.inter-sonic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 19, 2002 at 01:53:13PM +0200, Per olof Ljungmark wrote:
> 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.
> 
> 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?

That's not needed, if the script is executable it will be started
at boot time.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
edwin@mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

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?20020719120227.GG577>