Hi,
I'm trying to get thin to work in no-daemon mode (like, don't fork / go in background) but as of today I can't.
I'm running thin 1.3.1, to serve a redmine cluster, and I guess it goes daemon mode because of the "cluster" mode.
My thin configuration
pid: tmp/pids/thin.pid
user: redmine
group: redmine
wait: 30
timeout: 30
log: log/thin.log
max_conns: 1024
require: []
environment: production
max_persistent_conns: 512
servers: 5
daemonize: true
#socket: tmp/thin.sock
port: 3000
chdir: /srv/redmine/current
And my current (non working) supervisor configuration:
[program:redmine]
command=/usr/local/bin/thin start -C /srv/current/redmine/config/thin.yml
directory=/srv/redmine/current
user=redmine
autostart=true
autorestart=true
startsecs=10
redirect_stderr=true
stdout_logfile=/var/log/supervisor/redmine.log
I wonder if I may be able to run the individual cluster items of thin using supervisor, instead of using thin cluster.
Thanks for any advice you'd have.
Romain