Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2003 22:14:11 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache help
Message-ID:  <20030722211411.GA15716@users.munk.nu>

next in thread | raw e-mail | index | archive | help
On Mon, Jul 21, 2003 at 02:33:10PM -0600, Dzevad Fazlic wrote:
> Hello there 
> I just installed freeBSD 4.8 with apache 1.3.27
> Everthing works perfect but when   i shutdown system or when i startup system 
> i am receiving this apache error
> (/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted string )
FWIW here's a working 1.3.28 rc script for apache (no diff from that for
1.3.27):

#!/bin/sh

case "$1" in
start)
	[ -x /usr/local/sbin/apachectl ] \
	&& /usr/local/sbin/apachectl start > /dev/null && echo -n ' apache'
	;;
stop)
	[ -r /var/run/httpd.pid ] \
	&& /usr/local/sbin/apachectl stop > /dev/null && echo -n ' apache'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0

I've broken the lines with \ chars to make it more readable/less likely
to break in the mail(!), just copy the above piecemeal into
/usr/local/etc/rc.d/apache.sh and ensure the file is executable and you
should be ok.

HTH
-- 
Jez

http://www.munk.nu/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030722211411.GA15716>