Bug#3327: cern-httpd postinst hangs if daemon configured for inetd
Package: cern-httpd
Version: 3.0-6
The cern-httpd postinst tries to start the daemon, like this:
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/cern-httpd
If the server is configured to run out of inetd, as I have it, this
(probably) runs cern-httpd and hangs. If you type an HTTP request
into it it works and marks the package configured, as desired.
My lightly edited cern-httpd.conf is below.
Ian.
# This file was automatically generated by the postinstallation script.
#
#
# Sample configuration file for cern_httpd for running it
# as a normal HTTP server.
#
# See:
# <http://www.w3.org/hypertext/WWW/Daemon/User/Config/Overview.html>
#
# for more information.
#
# Written by:
# Ari Luotonen April 1994 <luotonen@dxcern.cern.ch>
#
# Minimally Hacked for Debian GNU/Linux by:
# Ted Hajek Aprli 1995 <tedhajek@boombox.micro.umn.edu>
#
# Set this to point to the directory where you unpacked this
# distribution, or wherever you want httpd to have its "home"
#
ServerRoot /usr/lib/cern-httpd
#
# The default port for HTTP is 80; if you are not root you have
# to use a port above 1024; good defaults are 8000, 8001, 8080
#
# Port 80
#
# General setup; on some systems, like HP, nobody is defined so
# that setuid() fails; in those cases use a different user id.
#
UserId nobody
GroupId nogroup
#
# Logging; if you want logging uncomment these lines and specify
# locations for your access and error logs
#
AccessLog /var/log/httpd/access.log
ErrorLog /var/log/httpd/error.log
LogFormat Common
LogTime LocalTime
#
# User-supported directories under ~/(UserDir)
#
UserDir public-html
#
# Scripts; URLs starting with /cgi-bin/ will be understood as
# script calls in the directory /your/script/directory
#
Exec /cgi-bin/* /usr/lib/cern-httpd/cgi-bin/*
#
# URL translation rules; default location of documents.
#
Pass /* /home/www/*
Reply to: