Search code examples
ruby-on-railsrubywindowssidekiq

How to run Sidekiq on Windows


Today im trying to setup my windows 10 machine with all my Rails environment. While trying to run the bundle exec sidekiq command to boot up Sidekiq i get the following error:

enter image description here

It seems that 'daemon() function is not implemented on this machine'. My first guess is that a process in windows does not run as daemon but does as a service?

Environment:

  • Windows 10
  • Ruby 2.3.0 x64
  • Devkit

Tried also dropping the -d option but i get the same error.


Solution

  • You can't daemonize on Windows. Daemonizing is a legacy option for older Unix systems that only support init.d, no modern systems recommend using it anymore.