I have a possible theory for this.
When you run the application as
$ rake resque:work QUEUE='*' &
[1] 13031
The application inteally does a fork+exit, to run in background.
C code equivalent of that would be:
if(fork()) exit(0);
So, the process with PID==13031 will spawn a child process & exit itself. The child will keep running in background & will be inherited by the init process (PID==1).
You can see if this is the case, press another enter key after starting the rake command. Do you see prints like this?
[1]+ Done rake resque:work QUEUE='*'
Try running ps in terminal. That should show the child process PID. If you kill that, the daemon should exit.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 244
تاريخ: شنبه
5 تير
1395 ساعت: 20:00