Did this thing ever work for anyone before?

58 views
Skip to first unread message

Nurcan Dila

unread,
Sep 20, 2011, 6:06:15 PM9/20/11
to Bluepill
just did gem install bluepill and tried the following pill.
never could make it work?
what's this, a million dollar question??????


ro...@172.26.198.53:~/master# cat script/worker.pill.rb
Bluepill.application("worker", :foreground => true) do |app|
app.process("delayed_job") do |process|
process.start_command = "#{File.dirname(__FILE__)}/delayed_job
start"
process.stop_command = "#{File.dirname(__FILE__)}/delayed_job
stop"
process.pid_file = "/tmp/worker.pid"
process.start_grace_time = 10.seconds
process.stop_grace_time = 10.seconds
end
end
ro...@172.26.198.53:~/master# bluepill load ~/master/script/
worker.pill.rb
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] Executing start command: /root/master/
script/delayed_job start
[info]: [worker:delayed_job] Going from down => starting
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[info]: [worker:delayed_job] Going from starting => down
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] pid_file /tmp/worker.pid does not
exist or cannot be read
[warning]: [worker:delayed_job] Executing start command: /root/master/
script/delayed_job start
^CTerminating...
Terminating...

ro...@172.26.198.53:~/master# ps -ef | grep dela
root 7183 1 0 22:00 ? 00:00:00 delayed_job

Rasheed Abdul-Aziz

unread,
Nov 3, 2011, 9:47:37 PM11/3/11
to bluep...@googlegroups.com
would it simply be that delayed_job_start does not create the pid? perhaps you wanted a demonize! ?

Daniel Waite

unread,
Nov 3, 2011, 10:35:18 PM11/3/11
to bluep...@googlegroups.com
My experience with bluepill has been poor. I don't recommend it.

--

Reply all
Reply to author
Forward
0 new messages