daemons
daemons copied to clipboard
Ruby daemons gem official repository
Trying to run `RAILS_ENV=production script/delayed_job -n2 restart` fails with ``` /home/ubuntu/crm/shared/bundle/ruby/2.2.0/gems/daemons-1.4.1/lib/daemons/application.rb:409:in `wait_and_retry_kill_harder': undefined method `positive?' for 20:Fixnum (NoMethodError) from /home/ubuntu/crm/shared/bundle/ruby/2.2.0/gems/daemons-1.4.1/lib/daemons/application.rb:386:in `stop' from /home/ubuntu/crm/shared/bundle/ruby/2.2.0/gems/daemons-1.4.1/lib/daemons/application_group.rb:181:in `block (2 levels) in stop_all' ``` This...
hello there. I try to run 2 my workers: ` ["first_worker.rb", "second_worker.rb"].each { |worker| Daemons.run(worker) }` But is running only first. Why? How can i run all my workers?
When :monitor & :multiple are both set to true, and multiple daemon processes are started, only one monitor process gets started. And if the daemon processes crashes, only one of...
Problem ----------- It toke me quite a while to figure out why I was seeing errors like this in my logs: ``` I, [2021-11-02T20:58:33.944764 #131302] INFO -- : *** below...
even when something causes an error, the application exits with zero. https://github.com/thuehlinger/daemons/blob/bf0ca25aa9ead5b451fbb9a111ff73f9bc5dd942/lib/daemons/cmdline.rb#L119-L129
Hello! I noticed that this gem uses '/' as its working directory here: [lib/daemons/daemonize.rb#L108]. In macOS Catalina this is a read-only directory, which causes issues. My understanding of the change...
Hello, I'm using ruby on windows, but daemons won't work because fork() is unimplemented on windows. Is there a workaround for this? Thanks. ```shell D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/daemons-1.2.4/lib/daemons/daemonize.rb:10:in `fork': fork() function is unimplemented...
We're noticing with the daemons gem that when it detaches the process for daemonization, it closes all the file descriptors and I/O streams. On the surface that's fine, but when...
Hello! Andrew here! I have a question about the line https://github.com/thuehlinger/daemons/blob/6f0ea6b15c6c1ca1bf23119156117fffa58d6514/lib/daemons/daemonize.rb#L49 Here we got pid from child throw pipe. But then we do not call Process.waitpid / Process.detach for it....
I am trying to run n instances of a script in parallel using daemons. The script performs some operation and I want to run this same script on multiple instances...