Re: Accessing Apache master process pid

2002-03-26 Thread Jon Jensen
On Wed, 20 Mar 2002, Geoffrey Young wrote: Jon Jensen wrote: Within mod_perl, I would like to know the pid of the master Apache daemon, well, here's one other way: Perl $Apache::Server::SaveConfig = 1; $PidFile = 'logs/httpd.pid'; /Perl PerlInitHandler 'sub { warn

Accessing Apache master process pid

2002-03-19 Thread Jon Jensen
Forgive me if this is really elementary. Within mod_perl, I would like to know the pid of the master Apache daemon, *after* it forks and goes into the background, but without knowing the location of httpd.conf or knowing the pidfile beforehand. Storing $$ during startup gives me the pid before

Re: Accessing Apache master process pid

2002-03-19 Thread Jon Jensen
On Wed, 20 Mar 2002, Stas Bekman wrote: Jon Jensen wrote: Within mod_perl, I would like to know the pid of the master Apache daemon, perldoc -f getppid Thanks, Stas. I should've found that. I'm still interested in getting the PidFile setting at runtime, but can live without it if I