Stopping servers in cron or at jobs

To use stop_iq in a cron or at job, use the appropriate -stop option:

stop_iq -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 the wrong server from being shut down if several are running.

stop_iq -stop all

Setting -stop all shuts down all servers that were started by the user ID that starts the server.

You can specify both options on the same command, for example:

stop_iq -agent -stop all

NoteIn a cron statement, you must specify the complete path name to the stop_iq executable.