Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2006 09:17:44 -0600
From:      Paul Schmehl <pauls@utdallas.edu>
To:        Sam Lawrance <lawrance@FreeBSD.org>, freebsd-ports@FreeBSD.org
Subject:   Re: Startup at boot problem
Message-ID:  <B6CE362B7099434BC86EABD1@utd59514.utdallas.edu>
In-Reply-To: <D25CA5D6-C919-4248-B1D2-8686ED77166D@FreeBSD.org>
References:  <0EF5CD301A7EA4ABAE895ACD@utd59514.utdallas.edu> <D25CA5D6-C919-4248-B1D2-8686ED77166D@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========E3CB0E187C31EC748AB1==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

--On Friday, March 24, 2006 20:17:23 +1100 Sam Lawrance=20
<lawrance@FreeBSD.org> wrote:

>
> On 24/03/2006, at 6:10 AM, Paul Schmehl wrote:
>
>> I'm working on a new port that uses tcl scripting rather than
>> compiled binaries.  The startup script works fine except at boot.
>> During the boot, I get this error message:
>> "exec: tclsh8.4: not found"
>>
>> The script has the following in the "header" section:
>> # PROVIDE: sensor_agent
>> # REQUIRE: LOGIN tclsh8.4
>> # BEFORE: LOGIN
>> # KEYWORD: FreeBSD shutdown
>>
>> Is there some other word I can use in REQUIRE that will allow
>> tclsh8.4 to be found?
>
> I think you've misunderstood what REQUIRE is meant to do (it's not  for
> specifying dependencies like a port does with *_DEPENDS). See the  man
> page for rcorder.
>
Hmm...I'm pretty sure I know what REQUIRE means.  It means that you don't=20
want your script to start until the REQUIREd items have been started.

I solved the problem by using the full path in the script.  Originally it=20
had "exec tclsh8.4".  I patched it to have "exec /usr/local/bin/tclsh8.4",=20
and it starts fine on boot now.   Obviously PATH didn't have /usr/local/bin =

in it at the time the script was being initiated.

Paul Schmehl (pauls@utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/
--==========E3CB0E187C31EC748AB1==========--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6CE362B7099434BC86EABD1>