start/stop script woes: ./squid.sh: Cannot determine the PREFIX
Sergey Matveychuk
sem at ciam.ru
Mon Sep 1 17:19:15 PDT 2003
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.
More information about the freebsd-ports
mailing list