From owner-freebsd-ports@FreeBSD.ORG Tue Sep 2 09:11:14 2003 Return-Path: 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 49B0716A4BF for ; Tue, 2 Sep 2003 09:11:14 -0700 (PDT) Received: from pop016.verizon.net (pop016pub.verizon.net [206.46.170.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id C67A243FFB for ; Tue, 2 Sep 2003 09:11:12 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.237.14.199]) by pop016.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030902161112.FMOU10125.pop016.verizon.net@mac.com> for ; Tue, 2 Sep 2003 11:11:12 -0500 Message-ID: <3F54C117.3070607@mac.com> Date: Tue, 02 Sep 2003 12:11:03 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20030901161847.GA4451@titan.klemm.apsfilter.org> <1062433890.95262.1.camel@jake> <20030901183034.GA28321@teddy.fas.com> In-Reply-To: <20030901183034.GA28321@teddy.fas.com> X-Enigmail-Version: 0.76.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop016.verizon.net from [68.237.14.199] at Tue, 2 Sep 2003 11:11:12 -0500 Subject: Re: start/stop script woes: ./squid.sh: Cannot determine the PREFIX X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 16:11:14 -0000 On Mon, 2003-09-01 at 12:18, Andreas Klemm wrote: [ ... ] > Its really not very comfortable having to call the start/stop scripts > with the complete path. > > root@titan[ttyp2]{211} /usr/local/etc/rc.d ./squid.sh start > ./squid.sh: Cannot determine the PREFIX I agree with your complaint: while the script may need to invoke itself (typically for a restart command which looks like "$0 stop ; $0 start"), it doesn't need an absolute path to do so. SysV-style init scripts used to be associated with runlevels, so that the startup script for Squid would be in /etc/init.d/squid, and symlinked to /etc/rc2.d/S50squid. That is, symlinked via a relative path like "../init.d/squid", not an absolute path. -- -Chuck