startssl at boot time
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Apr 4 04:23:35 PDT 2004
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
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040404/65cc15ac/attachment.bin
More information about the freebsd-questions
mailing list