perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <modperl-l...@2xlp.com>
Subject startup.pl and start/stop
Date Tue, 28 Mar 2006 22:06:41 GMT

I've been reading the docs here:
	http://perl.apache.org/docs/2.0/api/Apache2/ 
ServerUtil.html#C_restart_count_
	http://perl.apache.org/docs/2.0/user/handlers/ 
server.html#Server_Life_Cycle

and i'm a bit confused

in my startup.pl i have this:

	BEGIN
	{
		my $restart_count = Apache2::ServerUtil::restart_count();
		print STDERR "\n --> restart count is : $restart_count ";
		if ( $restart_count == 2 )
		{
			# precache templates & db only in real startup
		}
	}

i only ever see restart count as 1.  is it possible that apache isn't  
restarting? ( i tired the restart count out of the begin block. no  
difference )





Mime
View raw message