0

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?

1
  • 2
    Check all your relevant logs first. Commented Nov 6, 2013 at 20:08

1 Answer 1

1

The most propable reason for this is that there is a path missing during the boot-process.

Also check the shell that is being called in the first line of the init-script.

It should read:

#!/bin/sh

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .