[csw-users] Re: [csw-newpkgs] apache update

Robert Stampfli csw at colnet.cboh.org
Tue Sep 14 16:32:59 CEST 2004


On Thu, Sep 02, 2004 at 05:21:50PM -0700, Philip Brown wrote:
> It's a bit overdue, because of the complexity of getting the package
> to actually _work nicely_, but the new, security-patched version of
> apache 1.x is now available.

I just noticed that apachectl in the new apache package is
broken:  If you attempt a restart, or do anything a root,
it kills the server first.  The problem turns out to be in
the code which checks for the existance of a pidfile:  In
checking, it sends a SIGTERM to httpd, killing it.  Here's
how I've patched my system:

*** /opt/csw/apache/bin/apachectl~      Thu Sep  2 20:08:14 2004
--- /opt/csw/apache/bin/apachectl       Tue Sep 14 10:20:51 2004
***************
*** 50,56 ****
      # check for pidfile
      if [ -f $PIDFILE ] ; then
        PID=`cat $PIDFILE`
!       if [ "x$PID" != "x" ] && kill $PID 2>/dev/null ; then
            STATUS="httpd (pid $PID) running"
            RUNNING=1
        else
--- 50,56 ----
      # check for pidfile
      if [ -f $PIDFILE ] ; then
        PID=`cat $PIDFILE`
!       if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
            STATUS="httpd (pid $PID) running"
            RUNNING=1
        else

Rob



More information about the users mailing list