From owner-freebsd-ports@FreeBSD.ORG Fri Mar 24 15:18:01 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66E0A16A422; Fri, 24 Mar 2006 15:18:01 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B56C43D45; Fri, 24 Mar 2006 15:18:01 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id BD27038921F; Fri, 24 Mar 2006 09:18:00 -0600 (CST) Date: Fri, 24 Mar 2006 09:17:44 -0600 From: Paul Schmehl To: Sam Lawrance , freebsd-ports@FreeBSD.org Message-ID: In-Reply-To: References: <0EF5CD301A7EA4ABAE895ACD@utd59514.utdallas.edu> X-Mailer: Mulberry/4.0.0b4 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========E3CB0E187C31EC748AB1==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Startup at boot problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2006 15:18:01 -0000 --==========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 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==========--