Skip to content

Instantly share code, notes, and snippets.

@bmorton
Last active August 29, 2015 14:08
Show Gist options
  • Save bmorton/adb2488cca9a62db61c9 to your computer and use it in GitHub Desktop.
Save bmorton/adb2488cca9a62db61c9 to your computer and use it in GitHub Desktop.
description "mailie"
start on filesystem
stop on runlevel S
respawn
respawn limit 10 5
oom never
kill timeout 86400
limit nofile 1048576 1048576
setgid mailie
setuid mailie
chdir /opt/mailie/current
script
exec /bin/bash <<'EOT'
export HOME="$(eval echo ~$(id -un))"
source /etc/profile.d/chruby.sh
chruby `cat .ruby-version`
exec bundle exec puma -C config/puma/staging.rb
EOT
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment