Hi,
We have a startup script that is put in /etc/init.d and it has been linked
in rc3.d directory.
The script dosen't start when the machine reboots, but when I run script
./VIS5T it runs without giving any errors.
Where am I going wrong ??
I have done the same thing for sshd script , which works perfectly fine.
I cannot se any errors during startup, where can i see the startup messages
after the machine boots ?
In which log file is it sotred ??
Thank You in advance for all your help.
Regards,
vijay.
*** The Script ***
#!/sbin/sh
#
# Setup the environment variables
#
APPL_OWNER=aplvis5t
ORA_OWNER=oravis5t
ASCRIPTS_TOP=/software/oracle/vis5tcomn/admin/scripts
OSCRIPTS_TOP=/software/oracle/vis5tdb/8.1.7/appsutil/scripts
ORA_SID=VIS5T
case "$1" in
start)
#
# run the addlnctl.sh to start the listener
#
su - $ORA_OWNER -c "$OSCRIPTS_TOP/addlnctl.sh start $ORA_SID"
#
# run the addbctl.sh to start the database
#
su - $ORA_OWNER -c "$OSCRIPTS_TOP/addbctl.sh start"
#
# run the adstrtal to start all the application process
#
su - $APPL_OWNER -c "$ASCRIPTS_TOP/adstrtal.sh apps/apps"
;;
stop)
#
# run the adstpall to stop all the application process
#
su - $APPL_OWNER -c "$ASCRIPTS_TOP/adstpall.sh apps/apps"
#
# wait for some time so concurrent manager processes clears off
#
sleep 120
#
# run the addbctl.sh to stop the database
#
su - $ORA_OWNER -c "$OSCRIPTS_TOP/addbctl.sh stop immediate"
#
# run the addlnctl.sh to stop the listener
#
su - $ORA_OWNER -c "$OSCRIPTS_TOP/addlnctl.sh stop $ORA_SID"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
** End of Script **