anchor.diff:  
       pushd /var/vcap/packages/jmeter/bin
   
  -    exec ./jmeter ${RMI_HOST_DEF} \
  +    exec java $ARGS -jar "ApacheJMeter.jar" \
  +      ${RMI_HOST_DEF} \
         -Dserver_port=${SERVER_PORT:-1099} \
         -s \
         --jmeterlogfile $LOG_DIR/jmeter-server.log \
  
positive.code: RMI_HOST_DEF=-Djava.rmi.server.hostname=<%=spec.networks.to_h.values.first.ip%>
  PIDFILE=${RUN_DIR}/pid
  
  case $1 in
  
    start)
      # Nuke any JAVA process. TODO: use the jmeter builtin script to kill the server
      # You better not colocated any JAVA app with this job, for now :-)
      pkill -f java
  
      mkdir -p $RUN_DIR $LOG_DIR
      chown -R vcap:vcap $RUN_DIR $LOG_DIR
  
negative.code:     ;;
  
    stop)
  
      kill -9 `cat $PIDFILE`
      rm -f $PIDFILE
  
      ;;
  
  