From 23e28026c3657432c4218bac9cc771016856743e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 23 Jul 1998 20:38:33 +0000 Subject: apachectl: redirect kill output to /dev/null --- www/apache20/files/patch-ak | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'www/apache20/files') diff --git a/www/apache20/files/patch-ak b/www/apache20/files/patch-ak index e85e920f178e..7cda58a4604b 100644 --- a/www/apache20/files/patch-ak +++ b/www/apache20/files/patch-ak @@ -1,5 +1,5 @@ *** src/support/apachectl.orig Fri Jul 17 01:25:54 1998 ---- src/support/apachectl Thu Jul 23 17:11:38 1998 +--- src/support/apachectl Fri Jul 24 00:34:59 1998 *************** *** 39,44 **** --- 39,46 ---- @@ -12,6 +12,23 @@ ARGV="$@" if [ "x$ARGV" = "x" ] ; then *************** +*** 50,56 **** + # check for pidfile + if [ -f $PIDFILE ] ; then + PID=`cat $PIDFILE` +! if kill -0 $PID; then + STATUS="httpd (pid $PID) running" + RUNNING=1 + else +--- 52,58 ---- + # check for pidfile + if [ -f $PIDFILE ] ; then + PID=`cat $PIDFILE` +! if kill -0 $PID > /dev/null 2>&1; then + STATUS="httpd (pid $PID) running" + RUNNING=1 + else +*************** *** 82,87 **** --- 84,90 ---- fi -- cgit v1.2.3