Created
March 11, 2016 03:39
-
-
Save thanhson1085/47272dd1731c340f65bd to your computer and use it in GitHub Desktop.
Cassandra Upstart Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cassandra Upstart | |
# | |
description "Cassandra" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 2 20 | |
exec /home/thanhson1085/cassandra/bin/cassandra -f | |
pre-stop script | |
kill `cat /tmp/cassandra.pid` | |
sleep 3 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment