Sha256: ebbae97d1b72164f3ce0c0eca757181a0127686cbe5c9f8b97550a864d27b378

Contents?: true

Size: 885 Bytes

Versions: 3

Compression:

Stored size: 885 Bytes

Contents

# /etc/init/sidekiq.conf - Sidekiq config

# This example config should work with Ubuntu 12.04+
#
# Save this config as /etc/init/sidekiq.conf then mange sidekiq with:
#   sudo start sidekiq
#   sudo stop sidekiq
#   sudo status sidekiq
#
# or use the service command:
#   sudo service sidekiq {start,stop,restart,status}
#
# This is the exact script used to manage Sidekiq on TheClymb.com
#

description "Sidekiq Background Worker System"

start on runlevel [2345]
stop  on shutdown

setuid deploy
setgid deploy

respawn
respawn limit 3 30

script
# this script runs in /bin/sh by default
# respawn as bash so we can source in rbenv
exec /bin/bash <<EOT
  # use syslog for logging
  exec >/dev/kmsg 2>&1
  # pull in system rbenv
  source /etc/profile.d/rbenv.sh

  cd /opt/theclymb/current
  exec bin/sidekiq -e production -C config/sidekiq.yml -P tmp/pids/sidekiq.pid
EOT
end script

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-2.7.2 examples/upstart.conf
sidekiq-2.7.1 examples/upstart.conf
sidekiq-2.7.0 examples/upstart.conf