From owner-freebsd-questions@FreeBSD.ORG Tue Jul 22 14:14:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63C0B37B401 for ; Tue, 22 Jul 2003 14:14:13 -0700 (PDT) Received: from munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA3F243F85 for ; Tue, 22 Jul 2003 14:14:12 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.20) id 19f4SZ-0004CW-Jd for freebsd-questions@FreeBSD.ORG; Tue, 22 Jul 2003 22:14:11 +0100 Date: Tue, 22 Jul 2003 22:14:11 +0100 From: Jez Hancock To: freebsd-questions@FreeBSD.ORG Message-ID: <20030722211411.GA15716@users.munk.nu> Mail-Followup-To: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Apache help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2003 21:14:13 -0000 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/