On Tue, Aug 12, 2003 at 11:50:01AM +0200, Dirk Lutzebaeck wrote:
Dennis Stout writes:
On a whim, I would try writing a second script to do the actual shutdown and
restart of Apache.
Then have your mod_perl program either run it in the background (with a ) or
fork it into another
Martin Langhoff writes:
how can I restart the root httpd server from within modperl?
Use `at` to schedule it a minute in the future -- effectively forking it.
Yes, also thought of that but the smallest unit of 'at' is minutes and
I want to restart the server immediately.
Note that
.
-Original Message-
From: Dirk Lutzebaeck [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:17
To: [EMAIL PROTECTED]
Subject: How to restart the root server from within modperl?
Hi,
how can I restart the root httpd server from within modperl? My
problem
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tuesday 12 August 2003 11:50, Dirk Lutzebaeck wrote:
Dennis Stout writes:
On a whim, I would try writing a second script to do the actual shutdown
and restart of Apache.
Then have your mod_perl program either run it in the background
Thanks, I made it a bit more simple:
use POSIX;
if (! fork) { # child
setsid;
POSIX::close(0);
POSIX::close(1);
exec(restart-apache-command);
}
Works great!
Thanks,
Dirk
Torsten Foertsch writes:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tuesday
Can I call something like a reload of httpd.conf?
This is what sending a SIGHUP to Apache does. However, both mod_perl-enabled
servers I run misbehave on this, so I always do a full restart.
Egor.
how can I restart the root httpd server from within modperl?
Use `at` to schedule it a minute in the future -- effectively forking it.
Note that normally apache starts as root and runs as an unprivileged
user. If this is the case you _can_ achieve it using a suid wrapper or
sudo, but you'll
Hi,
how can I restart the root httpd server from within modperl? My
problem is that when I call system() with say apachectl restart the
father process is stopped killing the children including the apachectl
itself. So it can't start of again. Can I call something like a reload
of httpd.conf?
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:17
To: [EMAIL PROTECTED]
Subject: How to restart the root server from within modperl?
Hi,
how can I restart the root httpd server from within modperl? My
problem is that when I call system() with say apachectl restart the
father
Dennis Stout writes:
On a whim, I would try writing a second script to do the actual shutdown and
restart of Apache.
Then have your mod_perl program either run it in the background (with a ) or
fork it into another process.
Did exactly that but is has the effect that when the parent
Hello Dirk Lutzebaeck,
Tuesday, August 12, 2003, 3:50:01 PM, you wrote:
DL Dennis Stout writes:
DL On a whim, I would try writing a second script to do the actual shutdown and
DL restart of Apache.
DL
DL Then have your mod_perl program either run it in the background (with a ) or
DL
11 matches
Mail list logo