5

I can't configure thin to start at system boot, I am new to Linux

I have CentOS 5.7

Thin gem was installed and thin was installed too.

sudo gem install thin
sudo thin install

and when I try to configure thin to start at system boot I get an error

sudo /sbin/chkconfig --level 345 thin on
error reading information on service thin: No such file or directory

Anybody have an idea why I get this error? Thanks,

sarnold
  • 102,305
  • 22
  • 181
  • 238
Mesbah
  • 83
  • 1
  • 6

1 Answers1

14

sudo mv /etc/rc.d/thin /etc/rc.d/init.d/thin, and retry.

光源凪
  • 156
  • 1
  • 4
  • Thanks, That worked fine, any explanation why did this happen? and why I needed to copy the file? – Mesbah Jan 01 '12 at 21:31
  • 2
    After thin install, as the message after installation says, the script 'thin' is installed into /etc/rc.d. And if we want thin to be installed as a service, the script must be put into init.d. Maybe you can read the scripts under init.d for more information. Sorry for my pool English:) – 光源凪 Jan 02 '12 at 15:36