The onshutdown script
Use the onshutdown script to automate shutting down the database server. The script attempts to shut down the server normally. If the server has not shut down after a specified time, the script forces the server to shut down.
On UNIX™ and Linux™, you must be user root or informix to run the onshutdown script. On Windows™, you must be in the Informix-Admin group to run the onshutdown script.
(1)
>>-+-onshutdown.sh------+--+---------+-------------------------><
| (2) | '-timeout-'
'-onshutdown.bat-----'
Notes:
Element | Purpose |
---|---|
timeout | The number of seconds after the onmode
-ky command has been run before running the onclean
-ky command. Must be a positive integer from 10 to 60. The default value is 30 seconds. |
Usage
Use the onshutdown script only when forcing the database server to shut down would be appropriate.
The INFORMIXDIR, INFORMIXSERVER, INFORMIXSQLHOSTS, and ONCONFIG environment variables must be set with valid values to run this utility.
You can only use the onshutdown script to shut down the local database server; you cannot use it to shut down a remote database server. The onshutdown script should not be used to shut down an entire high-availability cluster or a remote database server instance.
The onshutdown script has a 10 second time period during which it can be aborted.