From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13493 invoked from network); 29 Sep 1999 18:22:38 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Sep 1999 18:22:38 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA07786 for ; Wed, 29 Sep 1999 14:22:38 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id MAA02857 for axp-list@redhat.com; Wed, 29 Sep 1999 12:22:34 -0600 From: Michal Jaegermann Message-Id: <199909291822.MAA02857@ellpspace.math.ualberta.ca> Subject: Re: Jensen boot question/problem To: axp-list@redhat.com Date: Wed, 29 Sep 1999 12:22:34 -0600 (MDT) In-Reply-To: from "erik@avalon.harvard.edu" at Sep 29, 99 02:09:51 pm Content-Type: text erik@avalon.harvard.edu wrote: > After snooping around in /etc/rc.d/init.d/portmap and > /etc/rc.d/init.d/functions, it appears that the scripts are hanging when > trying to get the PID of a nonexistant process .... > > Are there any known problems with the RH6.0 init scripts? A function which checks a status of processes started by scripts from /etc/rc.d/init.d/ is obviously broken. No idea if this is relevant to your troubles but this is one way to fix it: --- etc/rc.d/init.d/functions~ Thu Oct 15 10:07:52 1998 +++ etc/rc.d/init.d/functions Mon Jul 26 19:57:38 1999 @@ -127,7 +127,8 @@ echo "$1 (pid $pid) is running..." return 0 else - pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'` + pid=`ps auxww | grep '[^[]'$1 \ + | grep -v 'sh \.\/' | awk '!/grep/{print $2}'` if [ "$pid" != "" ] ; then echo "$1 (pid $pid) is running..." return 0 Michal