патч для cstart: --- cstart Sun May 5 17:39:09 2002 +++ /usr/local/cachesys5/bin/cstart Thu May 22 16:44:55 2003 @@ -417,7 +417,7 @@ args=$args' -C '$installdir/$config.cpf'*'$cfgname # Pause for removal of stale cache.ids file if necessary if [ -f cache.ids ]; then idle=5; else idle=0; fi #LRS475 - ../bin/cuxs -s . $args -B & + ../bin/cuxs -s . $args -B & if [ "$!" = "" ] then echo "Cache failed to start." echo "The Cache Control Process could not be created." @@ -430,9 +430,10 @@ Abort fi sleep $idle #LRS475 - seen=`ps -fp$! | tail -1 | awk '{print $2, $3}' | grep -c "$! $$"` + uname -a | grep -q Linux && PSARG=f || PSARG=l + seen=`ps -${PSARG}p$! | tail -1 | awk '{print $2, $3}' | grep -c "$! $$"` i="" - until test \( -f cache.ids \) -o \( "`ps -fp$! | tail -1 | awk '{print $2, $3}' | grep -c \" $! $$\"`" -eq 0 \) + until test \( -f cache.ids \) -o \( "`ps -${PSARG}p$! | tail -1 | awk '{print $2, $3}' | gre p -c \"$! $$\"`" -eq 0 \) do i=$i"." sleep 3 if [ "$i" = %
|