A typical Sidekiq config file is like
:verbose: false
:concurrency: 4
:strict: false
:logfile: log/sidekiq.log
:pidfile: tmp/pids/sidekiq.pid
:queues:
- default
- mailers
development:
:verbose: true
:concurrency: 2
:logfile: log/sidekiq_dev.log
:pidfile: tmp/pids/sidekiq_dev.pid
However, the logfile and pidfile do not work with version 6.2.0. That's because the changes on 6.0.
My current workaround:
pid=`ps aux | grep sidekiq | grep -v grep | awk '{print $2}'`;
kill $pid
cd /var/www/$proj/current/
bundle exec sidekiq -e production -C config/sidekiq.yml >& log/sidekiq.log &