Date: Tue, 02 Sep 2003 12:11:03 -0400 From: Chuck Swiger <cswiger@mac.com> To: freebsd-ports@freebsd.org Subject: Re: start/stop script woes: ./squid.sh: Cannot determine the PREFIX Message-ID: <3F54C117.3070607@mac.com> In-Reply-To: <20030901183034.GA28321@teddy.fas.com> References: <20030901161847.GA4451@titan.klemm.apsfilter.org> <1062433890.95262.1.camel@jake> <20030901183034.GA28321@teddy.fas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F54C117.3070607>