jim 99/04/06 13:34:57
Modified: src/support apachectl
Log:
Avoid the confusing error message from kill
if the PID isn't valid. We take care of this ourselves
Revision Changes Path
1.14 +1 -1 apache-1.3/src/support/apachectl
Index: apachectl
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/support/apachectl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- apachectl 1999/02/09 18:00:34 1.13
+++ apachectl 1999/04/06 20:34:56 1.14
@@ -50,7 +50,7 @@
# check for pidfile
if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
- if [ ! "x$PID" = "x" ] && kill -0 $PID; then
+ if [ ! "x$PID" = "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="httpd (pid $PID) running"
RUNNING=1
else