Supervisor/supervisor — Issue #86: Supervisor spawns too many [program:x]
Author: didip
Created: 2012-02-01 18:57:50+00:00
State: open

Supervisor config:

```bash
[program:resque-scheduler]
startsecs=6
command=/opt/ruby-enterprise/bin/rake resque:scheduler
environment=RAILS_ENV=production
directory=/path/to/app/current
user=app_user
stderr_logfile = /var/log/supervisor/resque-scheduler.log
stdout_logfile = /var/log/supervisor/resque-scheduler.log
```

This is a typical Rails app, it took seconds to boot. That's why I use startsecs option.

There should only be 1 of this program running. But every time I restarted supervisord (/etc/init.d/supervisord restart), it spawned two of this rake resque:scheduler.

Got any pointer why?