anchor.diff:  #                    the management and storage of structured data.
   ### END INIT INFO
   
  -# Author: Eric Evans <eevans@racklabs.com>
  -
   DESC="Cassandra"
   NAME=cassandra
   PIDFILE=/var/run/$NAME.pid
   SCRIPTNAME=/etc/init.d/$NAME
  -CONFDIR=/etc/cassandra
  -JSVC=/usr/bin/jsvc
  +CASSANDRA_HOME=<%= node.cassandra.installation_dir %>
  +CASSANDRA_CONF=<%= node.cassandra.conf_dir %>
  +USER=<%= node.cassandra.user %>
  +GROUP=<%= node.cassandra.user %>
   WAIT_FOR_START=10
  -CASSANDRA_HOME=/usr/local/cassandra
   FD_LIMIT=100000
   
  -# The first existing directory is used for JAVA_HOME if needed.
  -JVM_SEARCH_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-7-openjdk /usr/lib/jvm/java-7-oracle"
  -
  -[ -e <%= node.cassandra.installation_dir || '/usr/local/cassandra' %>/lib/apache-cassandra-<%= node.cassandra.version %>.jar ] || exit 0
  -[ -e /etc/cassandra/cassandra.yaml ] || exit 0
  -[ -e /etc/cassandra/cassandra-env.sh ] || exit 0
  +[ -e $CASSANDRA_HOME/lib/apache-cassandra-<%= node.cassandra.version %>.jar ] || exit 0
  +[ -e $CASSANDRA_CONF/cassandra.yaml ] || exit 0
  +[ -e $CASSANDRA_CONF/cassandra-env.sh ] || exit 0
   
   # Read configuration variable file if it is present
   [ -r /etc/default/$NAME ] && . /etc/default/$NAME
  -
  -# If JAVA_HOME has not been set, try to determine it.
  -if [ -z "$JAVA_HOME" ]; then
  -    # If java is in PATH, use a JAVA_HOME that corresponds to that. This is
  -    # both consistent with how the upstream startup script works, and how
  -    # Debian works (read: the use of alternatives to set a system JVM).
  -    if [ -n "`which java`" ]; then
  -        java=`which java`
  -        # Dereference symlink(s)
  -        while true; do
  -            if [ -h "$java" ]; then
  -                java=`readlink "$java"`
  -                continue
  -            fi
  -            break
  -        done
  -        JAVA_HOME="`dirname $java`/../"
  -    # No JAVA_HOME set and no java found in PATH, search for a JVM.
  -    else
  -        for jdir in $JVM_SEARCH_DIRS; do
  -            if [ -x "$jdir/bin/java" ]; then
  -                JAVA_HOME="$jdir"
  -                break
  -            fi
  -        done
  -    fi
  -fi
  -JAVA="$JAVA_HOME/bin/java"
  -
  -# Read Cassandra environment file.
  -. /etc/cassandra/cassandra-env.sh
  -
  -if [ -z "$JVM_OPTS" ]; then
  -    echo "Initialization failed; \$JVM_OPTS not set!" >&2
  -    exit 3
  -fi
   
   # Load the VERBOSE setting and other rcS variables
   . /lib/init/vars.sh
  
positive.code:                 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
          esac
          ;;
    restart|force-reload)
          echo "Restarting $DESC"
          log_daemon_msg "Restarting $DESC" "$NAME"
          do_stop
  
negative.code:                 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
          esac
          ;;
      stop)
          echo "Stopping $DESC"
          [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
          do_stop
  