Re: Startup & Shutdown scripts wisdom needed for informix 7.2
Posted in 1996
NCLBTLong wrote:
>
> Greetings, I work with a non profit relief & development organization
> that just purchased a hp/k420 server with informix 7.2. Since i'm new to
> both unix and informix, looking for shutdown and startup scripts for the
> /sbin/rc2.d directory. We have only one instance wvms01 and run informix
> from the /opt/informix directory. Oh yes we are running 10.10 of hp/ux,
> any help with these scripts would be greatly appreciated.
>
> Please respond to the following email address: Norm_Long@wvccg.wvus.org
>
> coram deo
Here's mine. I run this script in a couple of servers and I also
removed a few lines that have to do with DR. Hope it helps.
NODENAME=`uname -n`
INFORMIXHOME=/u/informix
INFORMIXLOG=$INFORMIXHOME/log
INFORMIXDIR=/opt/informix
INFORMIXSERVER="$NODENAME"tcp
export INFORMIXDIR INFORMIXSERVER
#
# process arg
#
case $1 in
start)
echo "Starting Informix On-Line"
/bin/su - informix -c ${INFORMIXDIR}/bin/oninit
/bin/su - informix -c "${INFORMIXDIR}/bin/ontape -c &"
/bin/su - informix -c "${INFORMIXDIR}/bin/onprobe &"
echo "Informix is ready"
;;
stop)
echo "Stopping Informix On-Line"
/bin/su - informix -c "${INFORMIXDIR}/bin/onmode -cky"
echo "Informix is offline"
;;
*)
echo "$0: unknown argument: $1"
;;
esac
#
# End of script
######################################################