Date: Tue, 02 Sep 2003 04:18:38 +0400 From: Sergey Matveychuk <sem@ciam.ru> To: Andreas Klemm <andreas@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: start/stop script woes: ./squid.sh: Cannot determine the PREFIX Message-ID: <3F53E1DE.1080800@ciam.ru> In-Reply-To: <20030901161847.GA4451@titan.klemm.apsfilter.org> References: <20030901161847.GA4451@titan.klemm.apsfilter.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andreas Klemm wrote: > #!/bin/sh > > if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then > echo "$0: Cannot determine the PREFIX" >&2 > exit 1 > fi > [...] > > I don't know if you share my feelings about that ;-) I'm sharing your feelings. I've found it quite uncomfortable. > Q: Can we get rid of that and hardcode the paths in start stop > scripts so that they can be called without complete path ? I think we need ask adrian@ to do so. -- Sem.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F53E1DE.1080800>