Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to detach sidekiq process once started in terminal

Tags:

sidekiq

I want to run sidekiq on my production server, I am using this command to start the process

bundle exec sidekiq -q mailer,5 -q default -e production

How do I detach from the process without stopping it, so that I can close the connection to server.

like image 881
Keviv Vivek Avatar asked Feb 09 '13 19:02

Keviv Vivek


1 Answers

The right answer is lower case -d:

bundle exec sidekiq -d -q mailer,5 -q default -e production

sidekiq --help will list the options:

-d, --daemon                     Daemonize process

When running -d option, sidekiq will ask for a log file, so the complete command is:

bundle exec sidekiq -d -L sidekiq.log -q mailer,5 -q default -e production
like image 122
Fabrizio Regini Avatar answered Oct 14 '22 07:10

Fabrizio Regini