Change Cassandra to Service Start vs Bin

starts cassandra with 'sudo service cassandra start' vs.
'sudo /usr/sbin/cassandra' to avoid having cassandra stopped if the
guestagent is stopped. see the bug details for more information.

Change-Id: Ifab557aaff5023f4b0fb4b91193785a0deb5ee2f
Closes-Bug: #1295313
This commit is contained in:
amcrn
2014-03-20 13:33:42 -07:00
parent 463fafa399
commit bb2d317901

View File

@@ -29,7 +29,7 @@ ENABLE_CASSANDRA_ON_BOOT = "sudo update-rc.d cassandra enable"
DISABLE_CASSANDRA_ON_BOOT = "sudo update-rc.d cassandra disable"
# cassandra binary stored at /usr/sbin/
START_CASSANDRA = "sudo /usr/sbin/cassandra"
START_CASSANDRA = "sudo service cassandra start"
STOP_CASSANDRA = "sudo killall java 2> /dev/null || true"
CASSANDRA_STATUS = """echo "use system;" > /tmp/check; cqlsh -f /tmp/check"""