Skip to content

Instantly share code, notes, and snippets.

@thanhson1085
Created March 11, 2016 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanhson1085/47272dd1731c340f65bd to your computer and use it in GitHub Desktop.
Save thanhson1085/47272dd1731c340f65bd to your computer and use it in GitHub Desktop.
Cassandra Upstart Ubuntu 14.04
# 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