Hi, i'd say that the thing you are seening is that 3rd restart is the one where the actually running apache is checking that a restart is possible and else refusing to stop?
Try logging the PID's of the process trying to restart? Tom Foo Ji-Haw wrote: > Hello all, > > I am trying my luck again on this issue, which I never quite understood/ > resolved. > > Whenever Apache starts/ restarts, it actually does this twice (the > second time to see if it can restart properly). > > In my httpd.conf: > PerlModule startup > > in startup.pm: > package startup; > use strict; > use warnings; > > BEGIN > { > open OUTFILE,'>debug.log'; > print OUTFILE Apache2::ServerUtil::restart_count()."\n"; > close OUTFILE; > } > > 1; > > The log file shows this when Apache starts: > 1 > 2 > 1 > 2 > > And the log file shows this when Apache restarts: > 3 > 1 > 2 > > I don't understand why I get 2 '1's and 2 '2's when Apache starts. > According to the documentation, I should expect only 1 '1' and 1 '2'. > Similarly for restarts, the order looks wrong (the doc says to expect > '1' '3' instead of '3' '1' and no '2'). > > Hope someone can enlighten me on this subject. Thanks.
signature.asc
Description: OpenPGP digital signature