From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 23:11:58 2004 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 DCB5C16A4CE for ; Mon, 5 Apr 2004 23:11:58 -0700 (PDT) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF15D43D1D for ; Mon, 5 Apr 2004 23:11:58 -0700 (PDT) (envelope-from rmvg@shaw.ca) Received: from pd5mr1so.prod.shaw.ca (pd5mr1so-qfe3.prod.shaw.ca [10.0.141.232]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HVQ00CEJJJYWN@l-daemon> for freebsd-questions@freebsd.org; Tue, 06 Apr 2004 00:04:46 -0600 (MDT) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd5mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0HVQ00M6RJJV5SE0@pd5mr1so.prod.shaw.ca> for freebsd-questions@freebsd.org; Tue, 06 Apr 2004 00:04:43 -0600 (MDT) Received: from shaw.ca (h68-146-233-221.cg.shawcable.net [68.146.233.221]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HVQ0082PJJXR5@l-daemon> for freebsd-questions@freebsd.org; Tue, 06 Apr 2004 00:04:46 -0600 (MDT) Date: Tue, 06 Apr 2004 00:04:58 -0600 From: RYAN vAN GINNEKEN In-reply-to: <20040404112328.GB7849@happy-idiot-talk.infracaninophile.co.uk> To: Matthew Seaman Message-id: <4072488A.7050200@shaw.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 References: <406F324B.1050005@shaw.ca> <20040404112328.GB7849@happy-idiot-talk.infracaninophile.co.uk> cc: freebsd-questions@freebsd.org Subject: Re: startssl at boot time 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, 06 Apr 2004 06:11:59 -0000 Matthew Seaman wrote: >On Sat, Apr 03, 2004 at 02:53:15PM -0700, RYAN vAN GINNEKEN wrote: > > >>I use freebsd 4.9 stable and apache 2.0.0.49 with mod_ssl when i type >>startssl everything seems to work ie my non ssl sites and my ssl site. >>However on reboot my ssl site does not come up until i run apachectl >>stop and then apachectl startssl. How do i make apache start the ssl >>stuff at boot time THANK YOU in advance. >> >> > >Apply this patch to /usr/local/etc/rc.d/apache2.sh: > >% diff -u apache2.sh.orig apache2.sh >--- apache2.sh.orig Sun Apr 4 12:20:39 2004 >+++ apache2.sh Sun Apr 4 12:20:54 2004 >@@ -3,7 +3,7 @@ > > case "$1" in > start) >- [ "ssl" = "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] && SSL=ssl >+ SSL=ssl > [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev/null && echo -n ' apache2' > ;; > stop) > > >which just stops the port trying to be clever about autodetecting if >SSL support is needed, and starts apache up with startssl every time. > > Cheers, > > Matthew > > > Patch guess i am new to patches in fact this is my first one usually just install the port as is and hope that all the patches are added. Have compiled a few packages from source but would rather not. Oh i think i get it it looks like mergemaster the + gets added and the - gets removed right i will do manually will that work NOPE please explain how i apply the patch works as i tried to manually edit the config file and apache did not start at all thank you in advance. Below is a copy of the edited apache2.sh file. #!/bin/sh PREFIX=/usr/local case "$1" in start) SSL=ssl [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev ;; stop) [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0