anchor.diff:  fi
   ### ---
   set -e
  +
  +
  +# redirect stdout to /var/log/init
  +exec > /var/log/init
  +
  +# redirect stderr to /var/log/init.err
  +exec 2> /var/log/init.err
   
   #grab pid of this process and update the pid file with it
   echo $$ > ${PIDFILE}
  
positive.code:   exit 1
  fi
  
  
  # redirect stdout to /var/log/init
  exec > /var/log/init
  
  # redirect stderr to /var/log/init.err
  exec 2> /var/log/init.err
  
  ## 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 $$
  
negative.code: 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}`
  
     if [ -n "${RESULT}" ]; then
       echo "Script already running! Exiting"
  