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 down services cleanly as part of a scheduled backup process, and then start them again once the qxodb server is running.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} EMNote: Use this to start and stop the e-mail service.
./sess-control.sh {START|STOP} ARNote: 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 ALLTo stop the archive service, enter the following:./sess-control.sh STOP ARTo suspend an event service named ES1, enter the following:./sess-control.sh SUSPEND ES ES1To resume a message publisher service named MP1, enter the following:./sess-control.sh RESUME MP MP1Note: If the script is going to be called from a cron job, remove the line tail -f $QXODIR/logs/$1.log from the end of the script.