Yes, jps doesn't behave the same on all platforms, you can
replace the checkalive function in nuxeoctl by this one:

checkalive() {
  if [ ! -r "$PID" ]; then
    return 1
  fi
  MYPID=`cat "$PID"`
  JPS=`ps wwx | grep java | grep -v grep | grep
"nuxeo.home=$NUXEO_HOME"`
  JPID=`echo $JPS | cut -f1 -d" " | grep $MYPID`
  if [ "x$JPID" = "x" ]; then
    return 1
  else
    return 0
  fi
}

(See https://jira.nuxeo.com/browse/NXP-6342 )

---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to