From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 17:29:04 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 41C8916A4CE for ; Thu, 8 Apr 2004 17:29:04 -0700 (PDT) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B94843D54 for ; Thu, 8 Apr 2004 17:29:03 -0700 (PDT) (envelope-from rmvg@shaw.ca) Received: from pd3mr7so.prod.shaw.ca (pd3mr7so-qfe3.prod.shaw.ca [10.0.141.23])2003))freebsd-questions@freebsd.org; Thu, 08 Apr 2004 18:24:21 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd3mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0HVV009WJNTGG460@pd3mr7so.prod.shaw.ca> for freebsd-questions@freebsd.org; Thu, 08 Apr 2004 18:24:52 -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 <0HVV00C76NSKL7@l-daemon> for freebsd-questions@freebsd.org; Thu, 08 Apr 2004 18:24:21 -0600 (MDT) Date: Thu, 08 Apr 2004 19:24:24 -0600 From: RYAN vAN GINNEKEN In-reply-to: <20040408104511.GA71019@happy-idiot-talk.infracaninophile.co.uk> To: Matthew Seaman Message-id: <4075FB48.2050208@shaw.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii 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> <4072488A.7050200@shaw.ca> <20040406090720.GB17361@happy-idiot-talk.infracaninophile.co.uk> <4074751E.2070607@shaw.ca> <20040407222702.GA66122@happy-idiot-talk.infracaninophile.co.uk> <40748790.9050206@shaw.ca> <20040408104511.GA71019@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: Fri, 09 Apr 2004 00:29:04 -0000 Here is the output of my sh -x /usr/local/etc/rc.d/apache2.sh start + PREFIX=/usr/local + SSL=ssl + [ -x /usr/local/sbin/apachectl ] + /usr/local/sbin/apachectl startssl + echo -n apache2 apache2+ exit 0 here is the log of what happens when i reboot useing this apache2.sh script #!/bin/sh PREFIX=/usr/local case "$1" in start) SSL=ssl [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /de ;; stop) [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && ech ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0 [Thu Apr 08 17:55:16 2004] [info] removed PID file /var/run/httpd.pid (pid=3243) [Thu Apr 08 17:55:16 2004] [notice] caught SIGTERM, shutting down [Thu Apr 08 17:55:24 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 17:55:25 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 17:55:25 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 17:55:25 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 17:55:27 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 17:55:27 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 17:55:27 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 17:55:27 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 17:55:27 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 17:55:28 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 17:55:28 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 17:55:28 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 17:55:28 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 17:55:28 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 17:55:28 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 17:55:28 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 17:55:28 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 mod_ssl/2.0.49 Ope [Thu Apr 08 17:55:28 2004] [info] Server built: Mar 30 2004 04:02:47 [Thu Apr 08 17:55:28 2004] [debug] prefork.c(955): AcceptMutex: flock (default: flock [Thu Apr 08 17:56:03 2004] [info] removed PID file /var/run/httpd.pid (pid=5919) [Thu Apr 08 17:56:03 2004] [notice] caught SIGTERM, shutting down [Thu Apr 08 17:56:30 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 17:56:31 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 17:56:31 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 17:56:31 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 17:56:32 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 17:56:32 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 17:56:32 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 17:56:32 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 17:56:32 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 17:56:33 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 17:56:33 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 17:56:33 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 17:56:33 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 17:56:33 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 17:56:33 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 17:56:33 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 17:56:33 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 mod_ssl/2.0.49 Ope [Thu Apr 08 17:56:33 2004] [info] Server built: Mar 30 2004 04:02:47 [Thu Apr 08 17:56:33 2004] [debug] prefork.c(955): AcceptMutex: flock (default: flock [Thu Apr 08 18:00:20 2004] [info] removed PID file /var/run/httpd.pid (pid=5942) [Thu Apr 08 18:00:20 2004] [notice] caught SIGTERM, shutting down [Thu Apr 08 17:56:33 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 17:56:33 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 17:56:33 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 17:56:33 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 17:56:33 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 17:56:33 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 17:56:33 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 mod_ssl/2.0.49 Ope [Thu Apr 08 17:56:33 2004] [info] Server built: Mar 30 2004 04:02:47 [Thu Apr 08 17:56:33 2004] [debug] prefork.c(955): AcceptMutex: flock (default: flock [Thu Apr 08 18:00:20 2004] [info] removed PID file /var/run/httpd.pid (pid=5942) [Thu Apr 08 18:00:20 2004] [notice] caught SIGTERM, shutting down and there is no apache not ssl or regular so i run apache start i get this in the logs and still no apache ssl however regular apache works fine [Thu Apr 08 18:19:07 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 18:19:08 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 18:19:08 2004] [info] Init: Seeding PRNG with 0 bytes of entropy [Thu Apr 08 18:19:08 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 18:19:10 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 18:19:10 2004] [warn] Init: Session Cache is not configured [hint: SSLSes [Thu Apr 08 18:19:10 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 18:19:10 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 18:19:10 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 18:19:11 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 18:19:11 2004] [info] Init: Seeding PRNG with 0 bytes of entropy [Thu Apr 08 18:19:11 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 18:19:12 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 18:19:12 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 18:19:12 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 18:19:12 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 mod_ssl/2.0.49 Ope [Thu Apr 08 18:19:12 2004] [info] Server built: Mar 30 2004 04:02:47 [Thu Apr 08 18:19:12 2004] [debug] prefork.c(955): AcceptMutex: flock (default: flock then i run apachectl stop followed by startssl and get this in the logs and everthing works great ssl and none ssl [Thu Apr 08 18:23:05 2004] [info] removed PID file /var/run/httpd.pid (pid=295) [Thu Apr 08 18:23:05 2004] [notice] caught SIGTERM, shutting down [Thu Apr 08 18:23:09 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 18:23:10 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 18:23:10 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 18:23:10 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 18:23:11 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 18:23:11 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 18:23:11 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 18:23:11 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 18:23:11 2004] [info] mod_unique_id: using ip addr 192.168.0.202 [Thu Apr 08 18:23:12 2004] [info] Init: Initializing OpenSSL library [Thu Apr 08 18:23:12 2004] [info] Init: Seeding PRNG with 136 bytes of entropy [Thu Apr 08 18:23:12 2004] [info] Init: Generating temporary RSA private keys (512/10 [Thu Apr 08 18:23:13 2004] [info] Init: Generating temporary DH parameters (512/1024 [Thu Apr 08 18:23:13 2004] [debug] ssl_scache_dbm.c(403): Inter-Process Session Cache [Thu Apr 08 18:23:13 2004] [info] Init: Initializing (virtual) servers for SSL [Thu Apr 08 18:23:13 2004] [info] Server: Apache/2.0.49, Interface: mod_ssl/2.0.49, L [Thu Apr 08 18:23:13 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 mod_ssl/2.0.49 Ope [Thu Apr 08 18:23:13 2004] [info] Server built: Mar 30 2004 04:02:47 [Thu Apr 08 18:23:13 2004] [debug] prefork.c(955): AcceptMutex: flock (default: flock Matthew Seaman wrote: >On Wed, Apr 07, 2004 at 04:58:24PM -0600, RYAN vAN GINNEKEN wrote: > > >>THANKS but i already have that line in my rc.conf file and the log >>entries that i have submitted to this list are not from a reboot but >>rather apachectl stop and start or startssl. So when i run a startssl i >>get the randomness i need however when i just use apachectl start which >>is 99.9% the same command it does not. honestly i am stumped hope you >>have some more wisdom to share. There is also the line about ssl cache >>i have do some googleing but have not been able to come up with anything >>that helps. >> >> > >That's most odd. As you say, the apache2.sh script essentially just >runs 'apachectl start' for you. Or, at least, that's what it's meant >to do. There must be something different about what it is doing. >Hmmm... Can you show us the output from: > > # sh -x /usr/local/etc/rc.d/apache2.sh start > >(make sure apache is not running before you type that) > > Cheers, > > Matthew > > >