Permalink
Browse files

Merge pull request #5 from iconara/fix_for_c_1.2.0

Silence stdout when starting Cassandra
  • Loading branch information...
2 parents 36c464d + 291128a commit 46a7877efdc1568b39e83e71344e856a1234990c Michael Klishin committed Jan 17, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 templates/default/cassandra.init.erb
@@ -130,9 +130,7 @@ do_start()
ulimit -l unlimited
ulimit -n "$FD_LIMIT"
- cd /
-
- start_daemon -p $PIDFILE $CASSANDRA_HOME/bin/cassandra -p $PIDFILE
+ start-stop-daemon --start --quiet --oknodo --chdir / --exec /bin/bash --oknodo --pidfile $PIDFILE -- -c "$CASSANDRA_HOME/bin/cassandra -p $PIDFILE 2>&1 > /dev/null"
is_running && return 0
for tries in `seq $WAIT_FOR_START`; do

0 comments on commit 46a7877

Please sign in to comment.