Skip to content

Instantly share code, notes, and snippets.

@rcreasey
Created July 18, 2011 15:51
Show Gist options
  • Select an option

  • Save rcreasey/1089918 to your computer and use it in GitHub Desktop.

Select an option

Save rcreasey/1089918 to your computer and use it in GitHub Desktop.
Graylog2 Bluepill
Bluepill.application("graylog2", :log_file => "/var/log/bluepill/graylog2.log") do |app|
app.uid = "root"
app.gid = "root"
app.process("server") do |process|
process.working_dir = "/var/graylog2/server"
process.start_command = "/usr/bin/java -jar graylog2-server.jar -DconfigPath=/etc/graylog2.conf"
process.daemonize = true
process.start_grace_time = 10.seconds
process.stop_grace_time = 10.seconds
process.restart_grace_time = 10.seconds
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment