You don't want separate scripts for stopping and starting. You want to create one script, put it in /etc/init.d, and set it up for the proper runlevels with the chkconfig command.
A sample script would look something like this:
Code:
#! /bin/bash
#
# /etc/init.d/arcsight_oracle.sh
#
### BEGIN INIT INFO
# Provides: arcsight_oracle
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: arcsight_oracle
# Description: arcsight_oracle
### END INIT INFO
case "$1" in
start)
echo -n "Starting arcsight_oracle"
/path/to/arcsight.startcommand arguments
echo "."
;;
stop)
echo -n "Starting arcsight_oracle"
/path/to/arcsight.startcommand arguments
echo "."
;;
*)
echo "Usage: service arcsight_oracle {start|stop}"
exit 1
esac
exit 0
Depending on how the dependencies are for those different applications, it may even make sense to put the start/stop commands for all of them in one script, instead of different scripts for each. This would allow you to start them in the right order.