Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Naming the mod_perl process $0

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


jdarrow at amazon

Dec 11, 2000, 1:07 AM

Post #1 of 3 (737 views)
Permalink
Naming the mod_perl process $0

Hello, I have a question that may have a simple answer.

In order to satisfy some broader system dependencies I need to define my mod_perl process name. By default $0 seems to get set to "/dev/null". When I try to modify $0 in the Apache startup script or elsewhere apache dumps core. I'm running Apache 1.3.9 with mod_perl 1.22 linked in on DEC alpha.

Can anyone think of a way that I could change it to not be "/dev/null"?

thanks for your help,

-john.


joshua at chamas

Dec 11, 2000, 5:39 AM

Post #2 of 3 (670 views)
Permalink
Re: Naming the mod_perl process $0 [In reply to]

> jdarrow[at]amazon.com wrote:
>
> Hello, I have a question that may have a simple answer.
>
> In order to satisfy some broader system dependencies I need to define my mod_perl process name. By default $0 seems to get set to "/dev/null".
> When I try to modify $0 in the Apache startup script or elsewhere apache dumps core. I'm running Apache 1.3.9 with mod_perl 1.22 linked in on DEC
> alpha.
>

local *0 = 'whatever'; # is how I do it

-- Josh

_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051


stas at stason

Dec 11, 2000, 5:47 AM

Post #3 of 3 (670 views)
Permalink
Re: Naming the mod_perl process $0 [In reply to]

On Mon, 11 Dec 2000, Joshua Chamas wrote:

> > jdarrow[at]amazon.com wrote:
> >
> > Hello, I have a question that may have a simple answer.
> >
> > In order to satisfy some broader system dependencies I need to define my mod_perl process name. By default $0 seems to get set to "/dev/null".
> > When I try to modify $0 in the Apache startup script or elsewhere apache dumps core. I'm running Apache 1.3.9 with mod_perl 1.22 linked in on DEC
> > alpha.
> >
>
> local *0 = 'whatever'; # is how I do it

and the real name of the script if you are running under Registry and
friends can be derived from __PACKAGE__ or $r->filename

>
> -- Josh
>
> _________________________________________________________________
> Joshua Chamas Chamas Enterprises Inc.
> NodeWorks >> free web link monitoring Huntington Beach, CA USA
> http://www.nodeworks.com 1-714-625-4051
>



_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas[at]stason.org http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.