Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I deployed my project on a Shared Hosting that has Root access the Server in picture is CENTOS

now although I have defined the service to start on boot it not getting started

chkconfig --level 35 thin.startup on

chkconfig --list | grep 'thin'
thin.startup    0:off   1:off   2:off   3:on    4:off   5:on    6:off

Here the script look like the script is stored under /etc/init.d/thin.startup

# network Bring thin server up
# chkconfig: 35 20 80
# description: Starts and stops the thin Server and 
# See how we were called.

thin -C /home/perwe100/public_html/1001/fedena-v2.3-bundle-linux/config/fedena.yml start

Not sure what is going wrong since I can find anything in boot.log and chkservd.log

am I missing something

Btw I can see the symlink present in /etc/rc3.d/ and /etc/rc5.d/ S20thin.startup@

Any one has an idea what I'm doing wrong

I want the script to start server on REBOOT

share|improve this question
up vote 1 down vote accepted

A couple of things you might need to check -

1 - you enabled thin for run levels 35, make sure your server is running in either run level 3 or 5. If not you might need to enable it for additional run levels. Although a CentOS server is most likely to run in run level 3 or 5, just double check it. runlevel

2 - Specify the full path to the thin binary.

something like this -


$DAEMON -C /yml-path-here/.yml start

3 - Before adding it to a start up script, confirm that the script works fine from the command line -

  thin -C /home/perwe100/public_html/1001/fedena-v2.3-bundle-linux/config/fedena.yml start
share|improve this answer

Init scripts are a bit more complex than your script. Check out here:

If you didn't want to write a complex init script than you can put your stuff into /etc/rc.d/rc.local see:

share|improve this answer
Good to know this but I cant see it working either not working added the script /usr/local/bin/thin -C /home/perwe100/public_html/1001/fedena-v2.3-bundle-linux/config/fedena.yml start when added in /etc/rc.d/rc.local any other solution my friend – Viren Feb 1 '13 at 13:51
Try /etc/rc.local – Stone Feb 1 '13 at 14:07
/etc/rc.local -> rc.d/rc.local* symlink already added as mention above – Viren Feb 1 '13 at 14:09
You should have the simplink /etc/rc?.d/S99local to ../rc.local on your desired runlevel. It is not by default. See the answer at:… – Stone Feb 5 '13 at 11:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.