-
-
Save rthuffman/6231416 to your computer and use it in GitHub Desktop.
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
#http://upstart.ubuntu.com/cookbook/#introduction | |
author "Zach Cox <zcox@pongr.com>" | |
description "Titan+Cassandra+Rexster" | |
version "0.3.1" | |
#2=regular running mode, 3,4,5 are aliases for 2 | |
start on runlevel [2345] | |
#0=shutdown, 1=single-user mode, 6=reboot | |
stop on runlevel [016] | |
#Logs to /var/log/upstart/titan.log | |
console log | |
#auto-restarts app if it dies unexpectedly, won't restart if it's stopped properly | |
respawn | |
env titan="bin/titan.sh" | |
env rexster_config="config/titan-server-rexster.xml" | |
env titan_config="config/titan-server-cassandra-es.properties" | |
#assume Titan Server extracted in to this dir | |
chdir /var/athena/titan | |
exec $titan $rexster_config $titan_config | |
#by default, upstart will send the app SIGTERM on stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment