Resque worker foreman failing to start workers

I have a foreman script starting up some workers on a standalone ruby app. Here's the script

Foreman script worker: bundle exec rake resque:work BACKGROUND=true QUEUE=image VERBOSE=true

When I run the script this is the output I get.

$ foreman start
22:00:38 worker.1 | started with pid 882
22:00:38 worker.1 | exited with code 0
22:00:38 system   | sending SIGTERM to all processes
SIGTERM received

The process seems to have exited but when I look at the ps -eaf | grep resque log it shows a resque worker running with pid 884. I've tested this and its always a pid +2 than the original.

When I run the bundle exec command straight from the terminal without foreman, the command executes just fine. Is there anything I'm missing with the foreman script?


So apparently, when running BACKGROUND=true the resque workers get daemonized and therefore the original pid gets deleted and a new one gets spanwed as an orphan process for the worker.

Still, there is an issue when creating 2 background workers with foreman because once one of the workers gets daemonized, foreman will end all processes and only one daemonized worker will be created instead of two.

Need Your Help

Visual Basic InternetSetOption

visual-studio internet-explorer proxy

I have got problem with reloading proxy settings in IE. I want to reload proxy options without restarting IE and Chrome. I've notice that InternetSetOption returns false.

Error when compiling a static library using Swift “unknown option character `X' in: -Xlinker”

ios swift ios8

Seeing this error when adding a swift file for compilation into a static library. using XCode 6.0 (6A215l)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.