pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/39713: apache restart fails
>Number: 39713
>Category: pkg
>Synopsis: apache restart fails
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 08 05:45:00 +0000 2008
>Originator: Martti Kuparinen
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD p130 4.0_STABLE NetBSD 4.0_STABLE (P130) #1: Fri Sep 5 12:54:22
EEST 2008 root@p130:/usr/src/sys/arch/amd64/compile/P130 amd64
Architecture: x86_64
Machine: amd64
>Description:
The current /etc/rc.d/apache script (provided by apache2 and apache22 packages)
can not be used to restart the httpd daemon.
>How-To-Repeat:
# pkg_info | grep apache
apache-2.2.9nb4 Apache HTTP (Web) server, version 2
ap22-php5-5.2.6nb1 Apache (apache22) module for PHP5
# ps axw | grep http
4837 ? I 0:00.01 /usr/pkg/sbin/httpd -k start
7104 ? I 0:00.26 /usr/pkg/sbin/httpd -k start
8623 ? I 0:00.13 /usr/pkg/sbin/httpd -k start
18773 ? I 0:00.06 /usr/pkg/sbin/httpd -k start
21573 ? IW 0:00.00 /usr/pkg/sbin/httpd -k start
22889 ? I 0:00.07 /usr/pkg/sbin/httpd -k start
26937 ? Ss 0:01.25 /usr/pkg/sbin/httpd -k start
27539 ? I 0:00.05 /usr/pkg/sbin/httpd -k start
29464 ? I 0:00.14 /usr/pkg/sbin/httpd -k start
6845 ttyp1 S+ 0:00.00 grep http
# /etc/rc.d/apache restart
Stopping apache.
Starting apache.
httpd (pid 26937) already running
# ps axw | grep http
#
>Fix:
A simple "sleep 1" in the startup script is needed as the following
works fine for me. Just to be safe, maybe "sleep 3" should be used
so that this works even on old/slow hosts...
# /etc/rc.d/apache stop; sleep 1; /etc/rc.d/apache start
Home |
Main Index |
Thread Index |
Old Index