arya/bluepill — Issue #133: application pid vs process pid
Author: darkshadow
Created: 2012-02-09 12:24:39+00:00
State: open

Hi,

I am facing problem with bluepill since it's creating pid in one place and check for existance of pid file in another place.

From syslog: bluepilld[12249]: [test_app:test_proc] pid_file **/var/run/bluepill/pids/test_app/test_proc.pid** does not exist or cannot be read

But in reality bluepill is creating pid file here. **/var/run/bluepill/pids/test_app.pid**

Pill file:
```
Bluepill.application("test_app") do |app|
app.uid = "vamsee"
app.gid = "vamsee"
app.process("test_proc") do |p|
p.working_dir = '/home/vamsee/Programs/bluepill'
p.start_command = "ruby test.rb"
p.demonize = true
p.start_grace_time = 5.seconds
p.environment = {}
end
end
```

test.rb: puts "hello"

How to resolve this issue ?, Current gem list

activesupport (3.2.1)
bluepill (0.0.55)
daemons (1.1.7)
i18n (0.6.0)
multi_json (1.0.4)
state_machine (1.1.2)

OS: Ubuntu 11.10 - 32bit.
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]