Zeljan Silje wrote:
>
> Hi,
>
> I have SmartUPS which is able to start and shutdown system
> automatically. I would like to automatically start and stop INFORMIX
> when SmartUPS start and stop system.
>
> How can I do this on following platforms SCO ODT5.0, AIX3.2.5 and AIX
> 4.2.
> I am using Informix OnLine 5.3 and Informix OnLine 7.2.
In your shutdown and startup areas/directories/files
#### Startup Script
# ONLINE 5
# set informix envornment. INFORMIXDIR PATH, etc
$INFORMIXDIR/bin/tbinit
# ONLINE 7
# set informix envornment. INFORMIXDIR PATH INFORMIXSERVER, etc
$INFORMIXDIR/bin/oninit
#### End startup
--------
#### Shutdown Script
# ONLINE 5
# set informix envornment. INFORMIXDIR PATH, etc
$INFORMIXDIR/bin/tbmode -ky
# ONLINE 7
# set informix envornment. INFORMIXDIR PATH INFORMIXSERVER, etc
$INFORMIXDIR/bin/onmode -ky
#### End shutdown
Hope it helps
Cheers
Sean