Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Jensen boot question/problem
Date: Wed, 29 Sep 1999 12:22:34 -0600 (MDT)	[thread overview]
Message-ID: <199909291822.MAA02857@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.3.96.990929135850.10718I-100000@avalon.harvard.edu> from "erik@avalon.harvard.edu" at Sep 29, 99 02:09:51 pm

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


  reply	other threads:[~1999-09-29 18:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-28 15:59 Jensen boot question/problem Jo Schambach
1999-09-28 19:10 ` Sebastian Moeller
1999-09-29  2:56   ` Tom Everett
1999-09-29 22:35     ` Sebastian Moeller
1999-09-29 16:29   ` Jo Schambach
1999-09-29 17:32     ` Phillip Ezolt
1999-09-29 18:09       ` erik
1999-09-29 18:22         ` Michal Jaegermann [this message]
1999-10-01 20:41           ` Jensen clock problem Jo Schambach
1999-10-01 22:20             ` Wes Bauske
1999-10-02  1:09               ` Larry Snyder
1999-10-02 10:39             ` erik
1999-10-03  9:15             ` Sebastian Moeller
1999-10-03 12:53               ` FlexLM on (oups) Tru64! Jonas Gustavsson
1999-10-04 16:51               ` Jensen clock problem Jo Schambach
1999-09-29 21:46         ` Jensen boot question/problem Jo Schambach
1999-10-01 16:50         ` Jo Schambach
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox