[EMAIL PROTECTED] wrote:
>
> Hi there,
> I am working on a web-oriented game that runs on Apache/modperl and
> MySQL. I have one perl process that runs forever and is outside of Apache
> that does a lot of tallying up and cleaning. I want the process to be
> started by Apache on server startup and give the process access to Apache
> much like a normal modperl script. Is this possible?
> Atli.
I would always seperate any proccess that are not web request orientated
outside the request architecture - i.e write your own daemon / crond
script thats does this exterior processing.
What do you need to access apache internals for ?
Starting something on startup is just a question of adding the required
lines to the server startup script.
> p.s. I was able to achieve something similar by placing the script in my
> modules directory and simply calling it from a browser. The script never
> returns so the browser hangs but at least the script runs. This is however
> rather messy and obviously not a method I want to use.
Not highly recomended but what about an exec / system call from the
startup.pl ? (as root remeber!).
Greg Cope