I'm trying to run thin
server in upstart. Here is what my upstart.conf
file contains:
description 'kitfaye'
start on runlevel [12356] stop on runlevel [!12356]
respawn
script
exec su -l deploy -c "export RAILS_ENV=production && cd
/home/deploy/kitfaye && thin start -e production -p 8003 -R config.ru"
end script
After I reboot my ubuntu machine I can see in htop 4 processes of thin
. You can see them in attachment picture. Of course I can't connect to 8003 port. What's going on there?
https://drive.google.com/file/d/0B-jLZf9ippNgYzIwSFZzZUozamM/edit?usp=sharing