Author: eevans Date: Fri May 21 16:23:02 2010 New Revision: 947064 URL: http://svn.apache.org/viewvc?rev=947064&view=rev Log: start script causes flapping when used with runit
When started in the foreground, invoke Cassandra using exec so that it replaces the current shell instead of running it from a sub-shell. Patch by Cliff Moon; reviewed by eevans for CASSANDRA-1114 Modified: cassandra/branches/cassandra-0.6/bin/cassandra Modified: cassandra/branches/cassandra-0.6/bin/cassandra URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.6/bin/cassandra?rev=947064&r1=947063&r2=947064&view=diff ============================================================================== --- cassandra/branches/cassandra-0.6/bin/cassandra (original) +++ cassandra/branches/cassandra-0.6/bin/cassandra Fri May 21 16:23:02 2010 @@ -113,7 +113,7 @@ launch_service() # to close stdout/stderr, but it's up to us not to background. if [ "x$foreground" != "x" ]; then cassandra_parms="$cassandra_parms -Dcassandra-foreground=yes" - $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH $props \ + exec $JAVA $JVM_OPTS $cassandra_parms -cp $CLASSPATH $props \ org.apache.cassandra.thrift.CassandraDaemon # Startup CassandraDaemon, background it, and write the pid. else