Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2004 19:24:24 -0600
From:      RYAN vAN GINNEKEN <rmvg@shaw.ca>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: startssl at boot time
Message-ID:  <4075FB48.2050208@shaw.ca>
In-Reply-To: <20040408104511.GA71019@happy-idiot-talk.infracaninophile.co.uk>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4075FB48.2050208>