-
-
Save bmorton/adb2488cca9a62db61c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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