anchor.diff:  # In the third case we have to define our own functions which are very dumb
   # and expect the args to be positioned correctly.
   
  +SCRIPT=$(basename $0)
  +mkdir -p /var/vcap/sys/log/monit
  +
  +exec 1>> /var/vcap/sys/log/monit/$SCRIPT.out.log
  +exec 2>> /var/vcap/sys/log/monit/$SCRIPT.err.log
  +
   if [ -r /lib/lsb/init-functions ]; then
       source /lib/lsb/init-functions
  -fi
  -
  -if [ "x$STDOUT" == "x" ]; then
  -    STDOUT=/dev/null
   fi
   
   OPEN_FILE_LIMIT=65536
  
positive.code: 
          log_success_msg "Starting the process" "$name"
          if which start-stop-daemon > /dev/null 2>&1; then
              start-stop-daemon --chuid vcap:vcap --start --quiet --pidfile $pidfile --exec $daemon -- -pidfile $pidfile -config $config > $STDOUT 2>&1 &
          else
              nohup $daemon run -config $config -pidfile $pidfile > $STDOUT 2>&1 &
          fi
          log_success_msg "$name process was started"
  
          bootstrapper -user <%= p('influxdb.user') %> -password <%= p('influxdb.password') %> -database <%= p('influxdb.database') %> -retention <%= p('influxdb.retention') %> -replication <%= p('influxdb.replication') %>
  
          if [ $? -ne 0 ]; then
            log_failure_msg "failed to boostrap db"
  
negative.code: #! /usr/bin/env bash
  
  set -e -x
  
  ### BEGIN INIT INFO
  # Provides:          influxd
  