shell如下:
。。。
GSB_RESTORE_PID="$GSB_VARDIR"/info/restore.pid
#check for pidfile
if [ -f $GSB_RESTORE_PID ]
then
PID=`cat $GSB_RESTORE_PID`
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="gsarestore(pid $PID) running"
RUNNING=1
else
STATUS="gsarestore(pid $PID?) not running"
RUNNING=0
fi
else
STATUS="gsbbackup(no pid file) not running"
RUNNING=0
fi
。。。。