Manually Register a Daemon on a Red Hat Enterprise Linux 6.x System
1. Log on to the system as the root user.
2. In the /etc/init.d directory, create an init-script using the naming convention sagrc-script_name (for example, sagis_default99). If you need to create multiple init-scripts because you have multiple product instances on the same machine, use the naming convention sagunique_numberrc-script_name.
4. Execute this command:
chmod +x /etc/init.d/sagoptional_unique_numberrc-script_name
5. Register the daemon by running these commands:
ln -s /etc/init.d/init-script_name /etc/rc.d/rc2.d/S020init-script_name
ln -s /etc/init.d/init-script_name /etc/rc.d/rc2.d/K020init-script_name
ln -s /etc/init.d/init-script_name /etc/rc.d/rc3.d/S020init-script_name
ln -s /etc/init.d/init-script_name /etc/rc.d/rc3.d/K020init-script_name
ln -s /etc/init.d/init-script_name /etc/rc.d/rc5.d/S020init-script_name
ln -s /etc/init.d/init-script_name /etc/rc.d/rc5.d/K020init-script_name