> > do they all start when the server restarts?
>
> no, i believe thats my question. how it is possible to prespawn my php-cgi
> executable to avoid waintingtime until app is fully loaded

how long is the waiting time?

> > what do you mean when you say 'faster'? (1 second - 1 minute - 1msec)
>
> faster is relative, it simple means "faster" ;)

but how slow is the delay that constitutes your problem? looks to me, like you 
are chasing ghosts.

anyway - just build a restart script which will call lynx (or wget) on a url 
on each host whose fcgi php you want to prespawn. that will start your php 
right after restarting...

<<<<<<<<<<
#!/bin/sh
#this is untested code
apache2ctl graceful
lynx -dump http://somehost/index.php > /dev/null
lynx -dump http://otherhost/index.php > /dev/null
lynx -dump http://thirdhost/index.php > /dev/null
>>>>>>>>>>

...this doesnt work for hosts which server many requests, since the first 
request is likely to come before the wget call to the fcgi. but then, the app 
would have started already anyway...

kind regards
Thilo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to