macournoyer/thin — Issue #93: Thin returns 0 even when not started all instances
Author: lzap
Created: 2012-02-29 16:11:32+00:00
State: open

When thin does not start all the instances it still returns 0. Example:

Configuration:

---
pid: tmp/pids/thin.pid
address: 0.0.0.0
wait: 30
timeout: 30
port: 5000
max_conns: 1024
require: []

environment: production
max_persistent_conns: 512
servers: 3
daemonize: yes

Occupy one port:

nc -l 5001 &

Then:

thin start --config config.yml
echo $?
0

The only way is to use pgrep and count them. Would be nice if the parent process would be able to return non-zero when not all instances are up.