From owner-freebsd-questions@FreeBSD.ORG Sun Apr 4 04:23:35 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 ADC7A16A4D0 for ; Sun, 4 Apr 2004 04:23:35 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1DCB43D49 for ; Sun, 4 Apr 2004 04:23:34 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i34BNTUj020102 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Apr 2004 12:23:30 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i34BNSRe020101; Sun, 4 Apr 2004 12:23:28 +0100 (BST) (envelope-from matthew) Date: Sun, 4 Apr 2004 12:23:28 +0100 From: Matthew Seaman To: RYAN vAN GINNEKEN Message-ID: <20040404112328.GB7849@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , RYAN vAN GINNEKEN , freebsd-questions@freebsd.org References: <406F324B.1050005@shaw.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline In-Reply-To: <406F324B.1050005@shaw.ca> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a 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: Sun, 04 Apr 2004 11:23:35 -0000 --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > stop and then apachectl startssl. How do i make apache start the ssl=20 > 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=20 --- apache2.sh.orig Sun Apr 4 12:20:39 2004 +++ apache2.sh Sun Apr 4 12:20:54 2004 @@ -3,7 +3,7 @@ =20 case "$1" in start) - [ "ssl" =3D "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] = && SSL=3Dssl + SSL=3Dssl [ -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 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAb/AwdtESqEQa7a0RApDSAJwKY4S4rCR60cjBtj7Oe0j5LCUH7ACfanjL 3+xD29t365ftQQ/NzWVdJIk= =yOrR -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--