Date: Thu, 27 Dec 2001 09:38:40 -0800 From: "Peter/Los Angeles, CA" <peter@haloflightleader.net> To: <freebsd-stable@FreeBSD.ORG> Subject: /usr/local/etc/rc.d/apache.sh question Message-ID: <004001c18efd$5627bf00$245b1486@hhlaw.com>
next in thread | raw e-mail | index | archive | help
Hello, I have some understanding of how the script works, but I'm not sure what it's asking for. [09:37][root@interim:/usr/local/etc/rc.d]# ls apache.sh* [09:37][root@interim:/usr/local/etc/rc.d]# ./apache.sh start ./apache.sh: Cannot determine the PREFIX That's what I get. The following will be the contents of apache.sh: #!/bin/sh if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then echo "$0: Cannot determine the PREFIX" >&2 exit 1 fi case "$1" in start) [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' ;; stop) [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache' ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0 Can someone please help? If I type apachectl as I usually have done in Linux, it works, but now this is asking me for something. Can someone please help? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004001c18efd$5627bf00$245b1486>