www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nickolay Kritsky <nkryt...@internethelp.ru>
Subject general/7609: apache couldn't been restarted after powerdown
Date Mon, 23 Apr 2001 15:41:13 GMT

>Number:         7609
>Category:       general
>Synopsis:       apache couldn't been restarted after powerdown
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Apr 23 08:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     nkrytsky@internethelp.ru
>Release:        1.3.12 (Unix)
>Organization:
apache
>Environment:
FreeBSD win.internethelp.ru 3.3-RELEASE FreeBSD 3.3-RELEASE #5: Fri Mar 23 17:28:22 MSK 2001
    root@win.internethelp.ru:/usr/src/sys/compile/PARSER  i386
>Description:
After the powerdown the box started to boot automatically
"apachectl start" had to start apache but didn't do it saying "httpd (pid 226) already running".
>How-To-Repeat:
1. stop apache
2. create apache pid_file (usually file called httpd.pid placed in directory /$APACHE_HOME/log)
3. write "1" into apache pid_file
4. put the link to apachectl in /usr/local/etc/rc.d (don't forget to append ".sh" to it)
5. reboot the computer
>Fix:
"my quick and dirty fix" was (diff apachectl apachectl.org):
<diff>
53c53
< if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null && $LYNX $STATUSURL
>/dev/null 2>&1 ; then
---
> if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
</diff>
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message