Last active
August 29, 2015 13:57
-
-
Save pwyliu/9659066 to your computer and use it in GitHub Desktop.
erb templates for graylog2 upstart scripts
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
#!upstart | |
description "graylog2-server" | |
start on started mongodb | |
stop on runlevel [016] | |
console log | |
respawn | |
respawn limit 10 5 | |
script | |
JAR="<%= scope['graylog2::params::svr_deploydir'] %>/graylog2-server.jar" | |
JAVA="/usr/bin/java" | |
#JAVA_OPTS="" | |
CONF="/etc/graylog2.conf" | |
${JAVA} -jar ${JAR} -f ${CONF} | |
end script |
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
#!upstart | |
description "graylog2 web interface" | |
start on started networking | |
stop on runlevel [016] | |
console log | |
respawn | |
respawn limit 10 5 | |
script | |
APP="<%= scope['graylog2::params::web_deploydir'] %>/bin/graylog2-web-interface" | |
JAVA_OPTS="-Dhttp.address=127.0.0.1 -Djava.net.preferIPv4Stack=true" | |
${APP} ${JAVA_OPTS} | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment