Skip to content

Instantly share code, notes, and snippets.

@atuyosi
Created June 16, 2015 07:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save atuyosi/7aa6c51175a80f04b919 to your computer and use it in GitHub Desktop.
unit file for unicorn(falstladder)
[Unit]
Description=Fastladder Unicorn Server
After=mysqld.service
[Service]
Type=forking
User=rails
WorkingDirectory=/var/lib/rails/fastladder
Environment=RAILS_ENV=production
SyslogIdentifier=fastladder-unicorn
PIDFile=/var/lib/rails/fastladder/tmp/pids/unicorn.pid
ExecStart=/usr/local/rvm/bin/rvm-exec 2.1.5 bundle exec "unicorn_rails -D -c config/unicorn.rb -E production"
ExecStop=/bin/kill -QUIT $MAINPID
ExecReload=/bin/kill -USR2 $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment