CENTOS的启动服务没有启动

我部署了我的项目在一个共享主机上有根访问服务器在图片是CENTOS

现在虽然我已经定义了服务启动启动它不开始

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 

这里的脚本看起来像脚本存储在/etc/init.d/thin.startup下

 #!/bin/sh # # # 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 

不知道发生了什么问题,因为我可以在boot.logchkservd.log中find任何东西

我错过了什么

顺便说一句我可以看到符号链接目前在/etc/rc3.d/和/etc/rc5.d/ S20thin.startup @

任何人有一个想法我做错了什么

我希望脚本在REBOOT上启动服务器

一些你可能需要检查的东西 –

1 – 您为运行级别35启用了精简,请确保您的服务器在运行级别3或5中运行。如果不是,则可能需要启用它以获取其他运行级别。 尽pipeCentOS服务器最有可能在运行级别3或5运行,但请仔细检查。 运行级别

2 – 指定thin二进制文件的完整path。

像这样的东西 –

DAEMON = / fullpathhere到二进制此处/ bin中/薄

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

3 – 在将其添加到启动脚本之前,请确认脚本在命令行中正常工作 –

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

初始化脚本比你的脚本复杂一点。 看看这里: http : //werxltd.com/wp/2012/01/05/simple-init-d-script-template/

如果你不想编写一个复杂的初始化脚本,你可以把你的东西放到/etc/rc.d/rc.local中 : http : //www.centos.org/docs/5/html/5.1/Installation_Guide /s1-boot-init-shutdown-run-boot.html