Copy $AGENT_HOME/install/unix/scripts/gcstartup to /etc/rc.d/init.d

Ensure the following lines exist:

 #!/bin/sh
 #Source Function Library

 if [ -f /etc/init.d/functions ]
  then
   . /etc/init.d/functions
 else
    if  [ -f /etc/rc.d/init.d/functions ]
    then
      .  /etc/rc.d/init.d/functions
    fi
 fi

 if [ -f  /u01/app/oracle/product/10.2.0/agent10g/agent10g/install/unix/scripts/agentstup ]; then
     /bin/su – oracle -c “/u01/app/oracle/product/10.2.0/agent10g/agent10g/install/unix/scripts/agentstup $1”
 fi

Make the links:

ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc2.d/S98gcstartup
ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc3.d/S98gcstartup
ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc5.d/S98gcstartup

ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc2.d/K98gcstartup
ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc3.d/K98gcstartup
ln -s /etc/rc.d/init.d/gcstartup /etc/rc.d/rc5.d/K98gcstartup

Reboot and ensure the agent is started automatically.