Well, I'm running Ubuntu 12.04.2 and I have Thin installed by
gem install thin
sudo thin install
sudo /usr/sbin/update-rc.d -f thin defaults
and I have my configs at /etc/thin
.
But after system reboot thin processes are not started unless I run sudo service thin start
.
While running sudo /usr/sbin/update-rc.d -f thin defaults
I got a warning:
update-rc.d: warning: thin stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (S 0 1 6)
But after changing # Default-Stop: S 0 1 6
to # Default-Stop: 0 1 6
(without S
) warning dissappeared. But this doesn't solve the problem.
Aso tried to reinstall thin, but problem still appears.
My Rails application thin log says:
>> Writing PID to tmp/sockets/shashechki_thin.0.pid
>> Using rack adapter
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on /home/deploy/projects/shashechki/shared/sockets/shashechki_thin.0.sock, CTRL+C to stop
>> Writing PID to /home/deploy/projects/shashechki/shared/pids/shashechki_thin.0.pid
>> Using rack adapter
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on /home/deploy/projects/shashechki/shared/sockets/shashechki_thin.0.sock, CTRL+C to stop
>> Exiting!