Re: How to start Informix online at boot time?
Posted in 1998
This is the important bits of my /sbin/init.d/online script linked to
/sbin/rc4.d.
Hope it helps
'start')
cat /home/informix/online.log >> /home/informix/online.log.old
cat >/home/informix/online.log
INFORMIXDIR=/opt/informix export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin export PATH
ONCONFIG=onconfig.dev1 export ONCONFIG
INFORMIXSERVER=dev1 export INFORMIXSERVER
oninit
set_return
onstat
;;
'stop') INFORMIXDIR=/opt/informix export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin export PATH
ONCONFIG=onconfig.dev1 export ONCONFIG
INFORMIXSERVER=dev1 export INFORMIXSERVER
onmode -ky
set_return
onstat
;;
Fergus
Jun H. Zhang wrote in message <350ff5f8.0@webserver.flclerks.com>...
>I created a script under /etc/rc2.d (Unixware 2.1.2)
>with the following line
>
>su - informix -c /home/informix/bin/oninit
>
>This is not successful, since within the informix
>.profile there are some interactions with the
>standard input. How can I respond
>to questions asked by the .profile script within
>the script runing at boot time?
>
>Jun
>
>