Re: apache restart

David Birnbaum <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Steffen,

You're trying to overwrite, and the OS has it locked.  Maybe you can rename it:

   mv /usr/lib/cgi-bin/test2.fcgi /usr/lib/cgi-bin/test2.fcgi.bak
   cp test2.fcgi /usr/lib/cgi-bin/test2.fcgi
   [ kill test2.fcgi process or whatever ]
   rm /usr/lib/cgi-bin/test2.fcgi.bak

David.

-----

On Wed, 6 Aug 2008, Steffen Wendzel wrote:

> hi,
>
> since the list is up again, I will try to post my question again.
>
> I develop a fastcgi based application but after I made a few requests I have
> to restart the apache using
>
> /etc/init.d/apache2 force-reload
>
> to be able to replace the old executable with the old one.
>
> Example:
>
> $ sudo cp test2.fcgi /usr/lib/cgi-bin/test2.fcgi
> cp: regular file "/usr/lib/cgi-bin/test2.fcgi": Text file busy
> $ sudo /etc/init.d/apache2 force-reload
> $ sleep 2 <-- takes at least two seconds
> $ sudo cp test2.fcgi /usr/lib/cgi-bin/test2.fcgi <-- now works fine
>
> Do you have any solutions how to optimize this?
>
> regards
> Steffen Wendzel
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.