From owner-freebsd-questions Fri Dec 14 9: 9:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from email.accessus.net (email.accessus.net [209.145.128.5]) by hub.freebsd.org (Postfix) with ESMTP id 6545C37B417 for ; Fri, 14 Dec 2001 09:09:19 -0800 (PST) Received: from [209.145.133.59] (account jkoenig@accessus.net HELO jwebmedia.com) by email.accessus.net (CommuniGate Pro SMTP 3.4.8) with ESMTP id 32769965 for freebsd-questions@FreeBSD.ORG; Fri, 14 Dec 2001 11:09:17 -0600 Message-ID: <3C1A3555.A7C12526@jwebmedia.com> Date: Fri, 14 Dec 2001 11:22:30 -0600 From: Joe Koenig Reply-To: joe@jwebmedia.com Organization: jWeb X-Mailer: Mozilla 4.77 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: My apache startup script doesn't work either. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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