CentOS 6 init script doesn't work properly
- by user711643
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?