CentOS 6 init script doesn't work properly

Posted by user711643 on Server Fault See other posts from Server Fault or by user711643
Published on 2013-11-06T20:07:36Z Indexed on 2013/11/06 21:56 UTC
Read the original article Hit count: 193

Filed under:
|
|
|
|

I'm setting up my ruby production server based on CentOS 6. I need a process called god (which is a process monitoring tool) to start at boot. I'm using an init script that I found here. Just as stated in the guide I ran:

chkconfig --add god 

and then

chkconfig --level 345 god on

After this if I run "service god start|restart" everything works. It loads the available configurations and brings up the related processes (if they are not running).

Problem is it doesn't work at boot. If I reboot the system, then I do "ps -aux | grep god". At this point "god" is running but apparently it didn't load the configuration files.

If i run again service god restart, it loads everything without problems.

What am I doing wrong?

© Server Fault or respective owner

Related posts about linux

Related posts about centos