Re: detecting server start, stop, graceful in startup.pl

2006-02-19 Thread Ken Perl
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-17 Thread Philippe M. Chiasson
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-17 Thread Ken Perl
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-16 Thread Philippe M. Chiasson
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-12 Thread Ken Perl
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-12 Thread Foo Ji-Haw
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 startup.pl > >From the Apache2::Serv

Re: detecting server start, stop, graceful in startup.pl

2006-02-12 Thread Ken Perl
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

Re: detecting server start, stop, graceful in startup.pl

2006-02-12 Thread Frank Wiles
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