Re: Restarting Apache2.2 from PERL

2007-08-29 Thread Frank Wiles
On Wed, 29 Aug 2007 13:23:30 +0100 John ORourke <[EMAIL PROTECTED]> wrote: > Matthieu FEREYRE wrote: > > > > kill -USR1 apache_pid > > > > do that extremly well but apache doesn't have the rights to launch > > it from perl ! > > > > Try writing a script which does it - eg. > > #!/bin/sh > /etc/i

Re: Restarting Apache2.2 from PERL

2007-08-29 Thread John ORourke
Matthieu FEREYRE wrote: kill -USR1 apache_pid do that extremly well but apache doesn't have the rights to launch it from perl ! Try writing a script which does it - eg. #!/bin/sh /etc/init.d/apache restart put that somewhere and make it setuid root, then in your perl code call system("/

Réf. : Re: Restarting Apache2.2 from PERL

2007-08-29 Thread Matthieu FEREYRE
phane GUIBOUD-RIBAUD <[EMAIL PROTECTED]> 29/08/2007 13:56 Remis le : 29/08/2007 13:57 Pour : modperl@perl.apache.org cc :(ccc : Matthieu FEREYRE/DSEC/SAGEM) Objet : Re: Restarting Apache2.2 from PERL It's like a suicide ? If you kill Apache, you kill you

Re: Restarting Apache2.2 from PERL

2007-08-29 Thread Stephane GUIBOUD-RIBAUD
It's like a suicide ? If you kill Apache, you kill yourself. Probably, you can create a detached process from your script that will be in charge of making the stuff. Take care about OS you are running perl on to do this. Regards Matthieu FEREYRE a écrit : Is it possible to restart Apache from