Autostarting Informix on HPUX
Posted in 2000
Topics: General Discussion
Does anyone know how to start Informix automatically on a HPUX system. I know how to write the startup scripts for HPUX, but with Informix you need the UID to be informix. During startup root tries to run the script. I even tried to set the UID bit to be informix without success. DJS
Hi Dennis. Try to use "su informix -c 'onint ' " in your startup script. Good luck. Sergey. Dennis Smith <dennis56@mediaone.com> ''''' ' ''''''''':39F88B95.6483F697@mediaone.com... > Does anyone know how to start Informix automatically on a HPUX system. > I know how to write the startup scripts for HPUX, but with Informix you > need the UID to be informix. During startup root tries to run the > script. I even tried to set the UID bit to be informix without success. > > DJS >
I'm using the following script (/sbin/init.d/informix). Shells
(startup.sh/shutdown.sh) are required to start/stop onprobe etc.
Hope this helps,
Sergey
<>
#/sbin/sh
PATH=/usr/sbin:/usr/bin:/sbin:/opt/informix/binexport PATH
rval=0
set_return() {
X=$?
if [ $X -ne 0 ]
then
echo "ERROR CODE $X"
rval=1
fi
}
if [ -f /etc/rc.config.d/informix ]
then
. /etc/rc.config.d/informix
fi
case $1 in
'start_msg')
echo "Starting Informix Online Dynamic Server"
;;
'stop_msg')
echo "Stopping Informix Online Dynamic Server"
;;
'start')
if [ "$INFSTART" -eq 1 -a -x /opt/informix/bin/startup.sh ]
then
(su informix -c "/opt/informix/bin/startup.sh" && rval=0; )
|| rval=1
else
rval=2
fi
;;
'stop')
if [ "$INFSTOP" -eq 1 -a -x /opt/informix/bin/shutdown.sh ]
then
(su informix -c "/opt/informix/bin/shutdown.sh" && rval=0; )
|| rval=1
else
rval=2
fi
;;
*)
rval=1
;;
esac
exit $rval
<>
"Dennis Smith" <dennis56@mediaone.com> wrote in message
news:39F88B95.6483F697@mediaone.com...
> Does anyone know how to start Informix automatically on a HPUX system.
> I know how to write the startup scripts for HPUX, but with Informix you
> need the UID to be informix. During startup root tries to run the
> script. I even tried to set the UID bit to be informix without success.
>
> DJS
>