Switches for the stop_asiq utility

Syntax

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 ]

Switches

Table 12: Switches for stop_asiq utility

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.

Stopping servers in cron or at jobs

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

NoteYou must specify the full pathname to the stop_asiq executable in the cron statement.