kashrman has asked for the wisdom of the Perl Monks concerning the following question:

Good day!

I work with SpeedyCGI under Apache 1.3.42

How can I make sure speedy restarts when I edit a perl library used by the CGI? I dont want to do recommended on CPAN command touch, because it must do another script automaticaly. And I don want give script rights to do this. Is there a way to restart without changing the mtime of the sgi script?

I'm trying to create a new CGI::SpeedyCGI object and try to do all of it methods, manipulate all options... But i have not result(

Thanks, sory for bad english

  • Comment on SpeedyCGI restarts without changing mtime script

Replies are listed 'Best First'.
Re: SpeedyCGI restarts without changing mtime script
by Anonymous Monk on Dec 27, 2012 at 14:38 UTC

    Patch it :) switch to something that isn't so old and unmaintained :)

      ok, i can upgrate Apache. But problem it will not solve. How i can restart script under SpeedyCGI? Or you about SpeedyCGI?

        ok, i can upgrate Apache. But problem it will not solve. How i can restart script under SpeedyCGI? Or you about SpeedyCGI?

        What?

        SpeedyCGI requires write access, the only way to fix it, is to patch SpeedyCGI, modify SpeedyCGI, edit SpeedyCGI, rewrite some lines in SpeedyCGI ... these files src/speedy_script.c src/speedy_perl.c...

        If you have apache, and fascgi, you can use FCGI::Restarter

        If you have mod_perl, Apache::Reload

        SpeedyCGI comes with a shutdown but it also needs write acces :)

        You could probably use kill :) say via Daemon::Generic...