Date: Fri, 14 Dec 2001 11:22:30 -0600 From: Joe Koenig <joe@jwebmedia.com> To: freebsd-questions@FreeBSD.ORG Subject: My apache startup script doesn't work either. Message-ID: <3C1A3555.A7C12526@jwebmedia.com>
next in thread | raw e-mail | index | archive | help
Here is my start-up script that used to work, until I recompiled my kernel yesteray: #!/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 startssl > /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 --------------------------- apachectl startssl works just fine, except not in this script. When trying to run the script manually, I get this: localhost# ./apache.sh startssl ./apache.sh: Cannot determine the PREFIX Any ideas? Thanks, Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C1A3555.A7C12526>