anchor.diff:  if [ -f ${PIDFILE} ]; then
      #verify if the process is actually still running under this pid
      OLDPID=`cat ${PIDFILE}`
  -   RESULT=`ps -ef | grep ${OLDPID} | grep ${SCRIPTNAME}`  
  +   RESULT=`ps -ef | grep ${OLDPID} | grep ${SCRIPTNAME}`
   
      if [ -n "${RESULT}" ]; then
        echo "Script already running! Exiting"
  
positive.code: fi
  ### ---
  set -e
  
  #grab pid of this process and update the pid file with it
  echo $$ > ${PIDFILE}
  
negative.code:   exit 1
  fi
  
  ## Only run once at a time
  # http://stackoverflow.com/questions/959475/shell-fragment-to-make-sure-only-one-instance-a-shell-script-runs-at-any-given-t
  # slightly modified to use $$
  