Sha256: b5da45acb2350bc2fac15064d97f340df8ccb3fcd4b480067a0635126da34bfd
Contents?: true
Size: 988 Bytes
Versions: 4
Compression:
Stored size: 988 Bytes
Contents
# /etc/init/workers.conf - manage a set of Sidekiqs | https://github.com/mperham/sidekiq/blob/master/examples/upstart/workers.conf # This example config should work with Ubuntu 14.10 and below It # allows you to manage multiple Sidekiq instances with # Upstart, Ubuntu's native service management tool. # # See sidekiq.conf for how to manage a single Sidekiq instance. # # Use "stop workers" to stop all Sidekiq instances. # Use "start workers" to start all instances. # Use "restart workers" to restart all instances. # Crazy, right? # description "manages the set of sidekiq processes" # This starts upon bootup and stops on shutdown start on runlevel [2345] stop on runlevel [06] # Set this to the number of Sidekiq processes you want # to run on this machine env NUM_WORKERS=2 pre-start script for i in `seq 1 ${NUM_WORKERS}` do start sidekiq index=$i done end script post-stop script for i in `seq 1 ${NUM_WORKERS}` do stop sidekiq index=$i done end script
Version data entries
4 entries across 4 versions & 1 rubygems