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 )




Reply via email to