Created
July 5, 2016 23:52
-
-
Save so77id/96d8a4248fa966becef7b5dc285a3f11 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
# /etc/init/sidekiq.conf - Sidekiq config | |
# This example config should work with Ubuntu 12.04+. It | |
# allows you to manage multiple Sidekiq instances with | |
# Upstart, Ubuntu's native service management tool. | |
# | |
# See workers.conf for how to manage all Sidekiq instances at once. | |
# | |
# Save this config as /etc/init/sidekiq.conf then manage sidekiq with: | |
# sudo start sidekiq index=0 | |
# sudo stop sidekiq index=0 | |
# sudo status sidekiq index=0 | |
# | |
# Hack Upstart's reload command to 'quiet' Sidekiq: | |
# | |
# sudo reload sidekiq index=0 | |
# | |
# or use the service command: | |
# sudo service sidekiq {start,stop,restart,status} | |
# | |
description "TU DESCRIPCION" | |
# This script is not meant to start on bootup, workers.conf | |
# will start all sidekiq instances explicitly when it starts. | |
#start on runlevel [2345] | |
#stop on runlevel [06] | |
# change to match your deployment user | |
# setuid deploy | |
# setgid deploy | |
# env HOME=/home/deploy | |
respawn | |
respawn limit 3 30 | |
# TERM is sent by sidekiqctl when stopping sidekiq. Without declaring these as | |
# normal exit codes, it just respawns. | |
normal exit 0 TERM | |
# Older versions of Upstart might not support the reload command and need | |
# this commented out. | |
reload signal USR1 | |
script | |
exec /bin/bash <<'EOT' | |
# Pick your poison :) Or none if you're using a system wide installed Ruby. | |
# rbenv | |
#source ~/.bashrc | |
# OR | |
# source /home/apps/.profile | |
# OR system: | |
# source /etc/profile.d/rbenv.sh | |
# | |
# rvm | |
#source /home/ubuntu/.rvm/scripts/rvm | |
# Logs out to /var/log/upstart/sidekiq.log by default | |
# ACA PONER COMANDO | |
cd /var/www/portalglam/portalglam-api | |
exec bundle exec sidekiq -L log/sidekiq.log -q mailers,5 -e production | |
EOT | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment