Skip to content

Instantly share code, notes, and snippets.

@stulentsev
Created November 29, 2012 14:09
Show Gist options
  • Save stulentsev/4169314 to your computer and use it in GitHub Desktop.
Save stulentsev/4169314 to your computer and use it in GitHub Desktop.
Simple unicorn upstart script
description "start and stop unicorn"
version "1.0"
author "Sergio Tulentsev"
#expect fork
script
cd /srv/stats/current && /home/sergio/.rvm/bin/r193_bundle exec unicorn_rails -E production -c config/unicorn.rb
end script
# cmt
start on runlevel [23]
stop on runlevel 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment