Switches were omitted from Chapter 1, section “The stop_asiq utility (UNIX only).” The title should read “(UNIX and Linux only).” Updated information is as follows:
To stop the server, run the stop_asiq utility, using the following command format:
stop_asiq [ -agent | -cleanup ] [ -stop [one | all ] ] [ -help ]
Parameter |
Purpose |
---|---|
-agent |
Stops the IQ Agent on UNIX or Linux systems |
-cleanup |
Removes the orphan Sybase IQ process on Linux |
-help |
Displays stop_asiq syntax and switches |
-stop [ one | all ] |
Removes user interaction with stop_asiq. Assumes “Y” response to all questions. |
To use stop_asiq in a cron or at job, specify the utility with the appropriate -stop option:
stop_asiq -stop one
Setting -stop one shuts down a single server, when exactly one running server was started by the user ID that starts the cron or at job. This prevents accidentally shutting down the wrong server if several are running.
stop_asiq -stop all
Setting -stop all shuts down all servers that were started by the user ID that starts the server. This command is compatible with Sybase IQ 12.5 if you have installed ESD #8 or higher.
You can specify both options on the same command, for example:
stop_asiq -agent -stop all
You must specify the full pathname to the stop_asiq executable in the cron statement.