In order to bring you the best possible user experience, this site uses Javascript. If you are seeing this message, it is likely that the Javascript option in your browser is disabled. For optimal viewing of this site, please ensure that Javascript is enabled for your browser.
Login  |   On Demand  |   Home  |   qad.com




Session Control Tool
You can start or stop QXO services—for example, either all services or a particular service such as the Event Service or the Message Publisher—from the command line by using the session control tool. Using this tool you can shut services down cleanly as part of a scheduled backup process, and then start them again once the qxodb server is running.
Note: You also can start and stop services from the QXO Dashboard; for details see Viewing Specific Services.
The sess-control.sh file is located in the scripts directory; the control.p file is located in the src directory.
Note: The sess-control.sh file contains settings for environment variables and database connections. This file is configured according to the information you provide during installation. However, you can manually edit this file to modify these settings as required.
To operate services, enter the following at the command line:
./sess-control.sh {QUERY|START|STOP|SUSPEND|RESUME} [ALL] [RESUME_SUB]
./sess-control.sh {QUERY|START|STOP|SUSPEND|RESUME} SERVICES [RESUME_SUB]
./sess-control.sh {QUERY|START|STOP|SUSPEND|RESUME} ES [event service code]
./sess-control.sh {QUERY|START|STOP|SUSPEND|RESUME} MP [message publisher code]
./sess-control.sh {QUERY|START|STOP|SUSPEND|RESUME} MS [message sender code] [RESUME_SUB]
./sess-control.sh {QUERY|SUSPEND|RESUME} SA [source application code]
./sess-control.sh {QUERY|RESUME} SB [subscriber code]
./sess-control.sh {START|STOP} EM
Note: Use this to start and stop the e-mail service.
./sess-control.sh {START|STOP} AR
Note: Use this to start and stop the archive service.
Where {QUERY|START|STOP|SUSPEND|RESUME} is the command you want to execute.
Example: To start all services, enter the following:
./sess-control.sh START ALL
To stop the archive service, enter the following:
./sess-control.sh STOP AR
To suspend an event service named ES1, enter the following:
./sess-control.sh SUSPEND ES ES1
To resume a message publisher service named MP1, enter the following:
./sess-control.sh RESUME MP MP1
Note: If the script is going to be called from a cron job, the line tail -f $QXODIR/logs/$1.log must be removed from the end of the script.