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
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Apr 23 08:50:01 PDT 2001
>Originator:     nkrytsky@internethelp.ru
>Release:        1.3.12 (Unix)
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
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".
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
"my quick and dirty fix" was (diff apachectl apachectl.org):
< 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
 [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!     ]

View raw message