Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2010-03-07 Thread Stefan Bühler
Hi,

 socket = /tmp/php-cgi.socket + var.PID

this is a really stupid idea: that way you just keep spawning new backends 
with every lighttpd restart, and the old backends will still be running too.

Recommended way is to use runit or daemontools/supervise with spawn-fcgi, that 
way you can restart php without lighttpd (and the other way round), and have 
php run with a different user (always a good thing for security).

I'd love to have some useful debug info on this, so if you can reproduce it 
and get a strace of it (lighttpd *and* php), that would be very nice.

The last strace someone had showed that lighttpd did the correct kill(...) 
call (there was no strace of the corresponding php backend).



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2008-03-16 Thread Pierre Habouzit
tag 457290 + moreinfo
thanks

On Fri, Dec 21, 2007 at 10:10:24AM +, Olaf van der Spek wrote:
 Package: lighttpd
 Version: 1.4.13-4etch4
 Severity: normal
 
 Hi,
 
 invoke-rc.d lighttpd stop does not (always) stop php-cgi.
 So restarting php isn't as easy as it should be.

  I fear that I cannot reproduce that with recent lighttpd's and have no
etch lighttpd at hand with php-cgi. Can you still reproduce that ?

  If not, please close the bug.
-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgpRBrvA6nmXy.pgp
Description: PGP signature


Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2008-03-16 Thread Olaf van der Spek
On Sun, Mar 16, 2008 at 11:17 AM, Pierre Habouzit [EMAIL PROTECTED] wrote:
   I fear that I cannot reproduce that with recent lighttpd's and have no
  etch lighttpd at hand with php-cgi. Can you still reproduce that ?

I haven't seen it in 1.4.18 and I can't reproduce it in Etch.

   If not, please close the bug.

Could it be fixed in Etch if it can be reproduced or would that not be
possible anyway?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2008-03-16 Thread Olaf van der Spek
On Sun, Mar 16, 2008 at 10:55 PM, Pierre Habouzit [EMAIL PROTECTED] wrote:
   Well reproducing it is a thing, knowing where it comes from would help
  even more.

If you can reliably reproduce it, finding the cause is usually not that hard.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2008-03-16 Thread Pierre Habouzit
On Sun, Mar 16, 2008 at 01:39:22PM +, Olaf van der Spek wrote:
 On Sun, Mar 16, 2008 at 11:17 AM, Pierre Habouzit [EMAIL PROTECTED] wrote:
I fear that I cannot reproduce that with recent lighttpd's and have no
   etch lighttpd at hand with php-cgi. Can you still reproduce that ?
 
 I haven't seen it in 1.4.18 and I can't reproduce it in Etch.
 
If not, please close the bug.
 
 Could it be fixed in Etch if it can be reproduced or would that not be
 possible anyway?

  Well reproducing it is a thing, knowing where it comes from would help
even more.

-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org




Bug#457290: invoke-rc.d lighttpd stop does not stop php-cgi

2007-12-21 Thread Olaf van der Spek
Package: lighttpd
Version: 1.4.13-4etch4
Severity: normal

Hi,

invoke-rc.d lighttpd stop does not (always) stop php-cgi.
So restarting php isn't as easy as it should be.

# ps aux|grep www
www-data  2314  0.0  0.2  81972  4956 ?Ss   Dec20   0:00
/usr/bin/php-cgi
www-data  8894  5.1  0.7  82736 14572 ?S11:38   1:14
/usr/bin/php-cgi
www-data  8903  5.0  0.6  82772 13932 ?S11:39   1:12
/usr/bin/php-cgi
www-data  8907  5.0  0.7  82776 15604 ?S11:40   1:07
/usr/bin/php-cgi
www-data  8908  5.0  0.6  82760 14212 ?S11:40   1:06
/usr/bin/php-cgi
www-data  9419  0.7  0.1   5828  3152 ?S12:00   0:01
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
root  9434  0.0  0.0   2848   696 pts/3R+   12:02   0:00 grep www

# invoke-rc.d lighttpd stop
Stopping web server: lighttpd.

# ps aux|grep www
www-data  2314  0.0  0.2  81972  4956 ?Ss   Dec20   0:00
/usr/bin/php-cgi
www-data  8894  5.0  0.7  82736 14572 ?S11:38   1:14
/usr/bin/php-cgi
www-data  8903  5.0  0.6  82772 13932 ?S11:39   1:12
/usr/bin/php-cgi
www-data  8907  5.0  0.7  82776 15604 ?S11:40   1:07
/usr/bin/php-cgi
www-data  8908  5.0  0.6  82760 14212 ?S11:40   1:06
/usr/bin/php-cgi
root  9459  0.0  0.0   2852   708 pts/3S+   12:02   0:00 grep www

# killall php-cgi

# ps aux|grep www
root  9462  0.0  0.0   2848   700 pts/3S+   12:03   0:00 grep www

# invoke-rc.d lighttpd start
Starting web server: lighttpd.

# ps aux|grep www
www-data  9484  0.0  0.0   4656  2024 ?S12:03   0:00
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
www-data  9485  0.3  0.2  84892  5512 ?Ss   12:03   0:00
/usr/bin/php-cgi
www-data  9490 12.6  0.4  86432  8456 ?S12:03   0:00
/usr/bin/php-cgi
www-data  9491 12.3  0.4  85632  8852 ?S12:03   0:00
/usr/bin/php-cgi
www-data  9492 15.0  0.5  88400 10992 ?S12:03   0:00
/usr/bin/php-cgi
www-data  9493  8.6  0.4  85792  9444 ?S12:03   0:00
/usr/bin/php-cgi
root  9495  0.0  0.0   2848   696 pts/3R+   12:03   0:00 grep www

#

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages lighttpd depends on:
ii  libattr1   2.4.32-1  Extended attribute shared library
ii  libbz2-1.0 1.0.3-6   high-quality block-sorting file co
ii  libc6  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libldap2   2.1.30-13.3   OpenLDAP libraries
ii  libpcre3   6.7+7.4-2 Perl 5 Compatible Regular Expressi
ii  libssl0.9.80.9.8c-4etch1 SSL shared libraries
ii  lsb-base   3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii  mime-support   3.39-1MIME files 'mime.types'  'mailcap
ii  zlib1g 1:1.2.3-13compression library - runtime

Versions of packages lighttpd recommends:
ii  php5-cgi   5.2.0-8+etch7 server-side, HTML-embedded scripti

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]