Though it will write to the log and it is wrong as the console.
On 2/18/06, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote:
> Ken Perl wrote:
> > Better than before, but only 'start' works.
> >
> > debian:~/WebGUI# apache2ctl -k start
> > [Fri Feb 17 22:34:21 2006] preload.perl: Program is startin
Ken Perl wrote:
> Better than before, but only 'start' works.
>
> debian:~/WebGUI# apache2ctl -k start
> [Fri Feb 17 22:34:21 2006] preload.perl: Program is starting
> Loading WebGUI.conf
> debian:~/WebGUI# apache2ctl -k graceful
> [Fri Feb 17 22:34:55 2006] preload.perl: Program is starti
Better than before, but only 'start' works.
debian:~/WebGUI# apache2ctl -k start
[Fri Feb 17 22:34:21 2006] preload.perl: Program is starting
Loading WebGUI.conf
debian:~/WebGUI# apache2ctl -k graceful
[Fri Feb 17 22:34:55 2006] preload.perl: Program is starting
Loading WebGUI.conf
Ken Perl wrote:
> I add your code to my startup.pl, but it doesn't work.
Change 'print' to warn and you should see the expected behaviour.
The only exception is stop, that doesn't go thru a restart cycle, so the
correct way to detect a shutdown is to register a server_shutdown callback
like this
I add your code to my startup.pl, but it doesn't work.
# apache2ctl -k start
Program is starting
Stopping...
#apache2ctl -k graceful
# apache2ctl -k stop
On 2/13/06, Frank Wiles <[EMAIL PROTECTED]> wrote:
> On Mon, 13 Feb 2006 09:17:57 +0800
> Ken Perl <[EMAIL PROTECTED]> wrote:
>
> > No, I w
You're lucky already. You didn't see what happens on the same script running
on Win32 Apache2...
- Original Message -
From: "Ken Perl" <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 12, 2006 3:02 PM
Subject: detecting server start, stop, graceful in startu
No, I want to do something in the startup.pl script.
When apache start, I also want to say my modperl program is starting
and started, when stop, I want to say my modperl program is stopping
and stopped. When graceful, I want to say reloading and reloaded.
But I didn't find a API could help, any id
On Sun, 12 Feb 2006 15:02:38 +0800
Ken Perl <[EMAIL PROTECTED]> wrote:
> >From the Apache2::ServerUtil API doc, to do something only when
> >server
> restarts (httpd -k start or httpd -k graceful), check whether
> restart_count() is bigger than 1:
>
> my $cnt = Apache2::ServerUtil::restart_coun
>From the Apache2::ServerUtil API doc, to do something only when server
restarts (httpd -k start or httpd -k graceful), check whether
restart_count() is bigger than 1:
my $cnt = Apache2::ServerUtil::restart_count();
do_something() if $cnt > 1;
However, the API doesn't work as above. I tried t