Processes dont stop when stopping Apache
Albert Leidinger <albert.leidinger-kt1KeoM4Q/BvMmomy+XrYrNldLUNz+W/@public.gmane.org>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I´m quite desperate right now. For nearly two weeks I try to get my perl scripts run as fastcgi app. Searched google, read and reread the docs, tried SuSE 9.1, SuSE 9.2, compiled the packages myself, tried different configurations, wrote in forums and mailing-lists, ... Its just the same: The scripts run as FastCGI, thats not the problem. THE PROBLEM IS: The fcgi-processes are not terminated when stopping or reloading Apache! Everytime I restart Apache (when running as dynamic I have to do a request of course) another process is started. But it also runs when Apache is stopped. So I get at least 5 unstopped processes when starting/stopping Apache 5-times! Or is this behavior just OK and I simply dont understand fcgi? :( Maybe its just some stupid mistake but I cant find it. Or is it a bug? Could it be a configuration problem? I tried with SuSE 9.1 and 9.2, first with the Apache2 and mod_fastcgi packages from SuSE CDs and later also compiled mod_fastcgi myself. The same behavior in all varations. The fastcgi module is beeing loaded. The Directive is in the Apache conf-Files (in SuSE you dont edit this yourself, the conf-file is autocreated from /etc/sysconfig/apache2 where you tell to load the module) When you install mod_fastcgi from the package, a mod_fastcgi.conf is also installed. It already has the "AddHandler fastcgi-script fcg fcgi fpl" directive So I didnt configure anything at all, as it already worked this way. When reading the doc I didnt find a directive which could lead to the problem. Its just for optimizing how fcgi works. In case I´m runnung as static app I have the FastCgiServer Directive pointing to my script. Again without further params or options. I ran scripts on a vhost and on the standard host of apache. The example perl.script on fastcgi.com works fine, the counter grows as doing some requests. Running "ps ax | grep fcgi" delivers two processes: - fcgi-pm - /usr/bin/perl /srv/.../test.fcgi I stop apache with "/etc/rc.d/apache2 stop" everything is beeing terminated. Running "ps ax | grep fcgi" delivers: - /usr/bin/perl/ /srv/.../test.fcgi So the process-manager is stopped by Apache, but the perl script isn´t stopped by the process manager! I also tried to run Apache as worker not as prefork. Its just the same! some version info: Perl 5.8.3 Apache 2.0.49/2.0.50 apache2_mod_fastcgi 2.4.0/2.4.2 FCGI.pm 0.67 Help in every way is very welcome! I would try to fix it myself. But I´m just hacking perl. I would love to do C, but in this case it needs more than another 2 weeks to get this fixed ;) But: Maybe its just me doing a simple stupid dumb thing wrong. It cant be its not running on my machine but on all others, can it? thanks Albert ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/