RE: initialization script
Posted in 2000
One problem (maybe the only one) is that after the "su - informix", your
script is no longer in control. In our startup/shutdown scripts, we set all
of the environment params (no, don't depend on a .profile somewhere -- set
ALL of them!), and then do a
/usr/bin/su informix -c "oninit"
- OR -
/usr/bin/su informix -c "onmode -yuck"
HTH,
Paul Mosser
-----Original Message-----
From: Martin A. Marques [mailto:martin@math.unl.edu.ar]
Sent: Tuesday, September 05, 2000 7:26 AM
To: informix-list@iiug.org
Subject: initialization script
I'm having problems configuring the initialization script which starts
informix server on boot.
What I have is this:
#!/sbin/sh
#
# Copyright (c) 1993, 1997 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)autofs 1.5 97/12/08 SMI"
#su - informix
case "$1" in
'start')
su - informix
# INFORMIXSERVER=ultra208
# INFORMIXDIR=/space/informix
# DB_LOCALE=en_us.8859-1
# CLIENT_LOCALE=en_us.8859-1
PATH=$INFORMIXDIR:$PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/space/informix/lib/:/space/informix/lib/esql:
export INFORMIXDIR INFORMIXSERVER LD_LIBRARY_PATH PATH DB_LOCALECLIENT_LOCA
LE
/space/informix/bin/oninit >/dev/console 2>&1 && echo 'starting Informix
ser
ver.'
;;
'stop')
su - informix
/space/informix/bin/onmode -ky
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
every time I try to start or stop the server I get this:
GLS initialization failed, error -23101
Somthing I should look for?
--
"And I'm happy, because you make me feel good, about me." - Melvin Udall
-----------------------------------------------------------------
Mart'n Marqu's email: martin@math.unl.edu.ar
Santa Fe - Argentina http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------