1-58 IBM Informix OnLine Database Server Administrator’s Guide
Modify UNIX Startup and Shutdown Scripts
Shutdown
AddUNIX and OnLine utility commands to theUNIX shutdown script that
perform the following steps:
1. Set theINFORMIXDIR environment variable to the full pathname of
the directory in which OnLine is installed. (If multiple versions of
OnLine are running on yourUNIX system, you must reset INFOR-
MIXDIR for each OnLine system that you shut down.)
2. Set thePA TH environment variable to include the $INFOR-
MIXDIR/bin directory.
3. Setthe TBCONFIG environment variable to the desired configuration
file.
4. Executetbmode -ky, which initiates immediate shutdown and takes
OnLine offline.
Thesecommands should execute after all user and database server processes
have finished working.
Examples of these commands for the C shell and Bourne shell follow:
C shell: setenv INFORMIXDIR /directory_name
setenv PATH $PATH:$INFORMIXDIR/bin
setenv TBCONFIG config_filename
tbmode -ky
Bourne shell: INFORMIXDIR= /directory_name
export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin
export PATH
TBCONFIG=config_filename
export TBCONFIG
tbmode -ky