[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Jensen boot question/problem
- 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)
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]