Last active
December 30, 2015 05:11
-
-
Save mugli/8724803 to your computer and use it in GitHub Desktop.
Titan server upstart script for Ubuntu 12.04
This file contains hidden or 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
### Titan upstart script (with Rexster and Elasticsearch & Cassandra embedded mode) | |
### Change rexster_config & titan_config values for different configurations | |
### Works with Titan Server version "0.4.x" | |
### This file goes to /etc/init/titan.conf | |
description "Titan - Distributed Graph Database" | |
start on (runlevel [2345] and local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [!2345] | |
#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="/opt/titan-server-0.4.2/bin/titan.sh" | |
env rexster_config="/opt/titan-server-0.4.2/conf/rexster-cassandra-es.xml" | |
env titan_config="/opt/titan-server-0.4.2/conf/titan-cassandra-embedded-es.properties" | |
pre-start script | |
$titan start $rexster_config $titan_config | |
sleep 5 | |
end script | |
post-stop script | |
$titan stop | |
sleep 5 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment