[pkg-lighttpd] Bug#659468: "service lighttpd reload" does not quit ruby
Michael Kainer
kaini1123 at gmail.com
Sat Feb 11 11:25:07 UTC 2012
Package: lighttpd
Version: 1.4.28-2+squeeze1
Severity: normal
When I run "service lighttpd reload" lighttpd does not properly kill the
ruby processes of Redmine (see attached configuration file).
michael at vserver:~$ ps -A | grep ruby
11600 ? 00:00:02 ruby
michael at vserver:~$ sudo service lighttpd reload
Reloading web server configuration: lighttpd.
michael at vserver:~$ ps -A | grep ruby
11600 ? 00:00:02 ruby # <-- thats the bad one
28667 ? 00:00:02 ruby
28764 ? 00:00:02 ruby
When looking at 11600 in htop the process is a child of init, not
of lighttpd anymore. Neither "kill -s 15 11600" nor "kill -s 10 11600"
will terminate the ruby process. "kill -s 9 11600" of course does.
-- System Information:
Debian Release: 6.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-vserver-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lighttpd depends on:
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libbz2-1.0 1.0.5-6+squeeze1 high-quality block-sorting file co
ii libc6 2.11.3-2 Embedded GNU C Library: Shared lib
ii libfam0 2.7.0-17 Client library to control the FAM
ii libldap-2.4-2 2.4.23-7.2 OpenLDAP libraries
ii libpcre3 8.02-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8o-4squeeze7 SSL shared libraries
ii libterm-readline-perl-p 1.0303-1 Perl implementation of Readline li
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages lighttpd recommends:
ii spawn-fcgi 1.6.3-1 A fastcgi process spawner
Versions of packages lighttpd suggests:
pn apache2-utils <none> (no description available)
ii openssl 0.9.8o-4squeeze7 Secure Socket Layer (SSL) binary a
pn rrdtool <none> (no description available)
-- Configuration Files:
/etc/lighttpd/lighttpd.conf changed:
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_rewrite",
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl"
dir-listing.encoding = "utf-8"
server.dir-listing = "disable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/redmine(/|$)" {
var.X_DEBIAN_SITEID = "default"
server.document-root = "/usr/share/redmine/public/"
server.indexfiles = ( "dispatch.fcgi" )
server.error-handler-404 = "/redmine/dispatch.fcgi"
alias.url = (
"/redmine/plugin_assets/" => "/var/cache/redmine/" + var.X_DEBIAN_SITEID + "/plugin_assets/",
"/redmine" => "/usr/share/redmine/public"
)
fastcgi.server += (
".fcgi" => (
"localhost" => (
"min-procs" => 1,
# max-procs >= 2 for Upload Progress or other tasks that need a second parallel request
"max-procs" => 2,
"socket" => "/var/run/redmine/sockets/" + var.X_DEBIAN_SITEID + "/fcgi.socket",
"bin-path" => "/usr/share/redmine/public/dispatch.fcgi",
"bin-environment" => (
"RAILS_RELATIVE_URL_ROOT" => "/redmine",
"X_DEBIAN_SITEID" => var.X_DEBIAN_SITEID,
"RAILS_LOG" => "/var/log/redmine"
),
"check-local" => "disable",
"kill-signal" => 10 # this is because programs linked against libfcgi need USR1 kill-signal
)
)
)
}
url.rewrite-once += (
"^/rsslounge/favicon.ico$" => "/rsslounge/public/favicon.ico",
"^/rsslounge/plugins/([^/]+)/(.*)$" => "/rsslounge/plugins/$1/public/$2",
"^/rsslounge/favicons/(.*)$" => "/rsslounge/data/favicons/$1",
"^/rsslounge/thumbnails/(.*)$" => "/rsslounge/data/thumbnails/$1",
"^/rsslounge/javascript/(.*)$" => "/rsslounge/public/javascript/$1",
"^/rsslounge/stylesheets/(.*)$" => "/rsslounge/public/stylesheets/$1",
"^/rsslounge/public/" => "$0",
"^/rsslounge/(.*)" => "/rsslounge/index.php?mod_rewrite=1&$1"
)
alias.url += ( "/phppgadmin" => "/usr/share/phppgadmin" )
-- no debconf information
More information about the pkg-lighttpd-maintainers
mailing list