Re: How to start Informix online at boot time?
Posted in 1998
Well, I'd rather not launch informix as root, because I like to be
able to see the system resources taken by informix (ipcs,etc...)
So, you'd better do this in your /etc/rc2.d/<script>
ONCONFIG=onconfig.<yours>
INFORMIXDIR=<your informix dir>
INFORMIXSERVER=<yours>.
. other variables you might need go here
.
export ONCONFIG INFORMIXDIR INFORMIXSERVER ...su informix -c $INFORMIXDIR/bin/oninit
<EOF>
(note the missing "-" in "su", which means: "just change your id,
don't execute .profile")
Cheers
Claude Lachat wrote:
>
> Do not need to su : you can launch online as root from the inittab. Just
> create a script witch sets the appropriate variables correctly, like
> this one :
>
> sleep 30 # wait 30 seconds (end of fast recovery) before running
> the logical logscontinous backup
> $INFORMIXDIR/start.savelog # launches continuous backup (ontape -c) in
> background for logical logs
BTW, the "sleep 30" is unreliable, Claude should do something like this
:
while `onstat -|grep -q "On-Line"`
do
sleep 1
done
(to be tested, I don't use that)
> > 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
--
Valery Fouques Valery.Fouques@wanadoo.fr
SYSADMIN GOSPORT-FRANCE /\\oO/\\
_ __/|
\\`O.o' http://perso.wanadoo.fr/valeryf
=(_ _)=
U