Skip to content

Instantly share code, notes, and snippets.

@martinklepsch
Created May 5, 2016 13:58
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 martinklepsch/087d1a36d5361386f1b5ff722f7e58ef to your computer and use it in GitHub Desktop.
Save martinklepsch/087d1a36d5361386f1b5ff722f7e58ef to your computer and use it in GitHub Desktop.
description "Run the bot's uberjar"
start on runlevel startup
stop on runlevel shutdown
env AWS_ACCESS_KEY={{aws_access_key}}
env AWS_SECRET_KEY={{aws_secret_key}}
env AWS_SQS_QUEUE={{aws_sqs_queue}}
setuid oc
setgid oc
respawn
exec java -jar /opt/oc/open-company-bot/target/oc-bot-0.1.0.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment