With the control function of the Management Layer, you can start and stop individual applications with a single control function through Genesys Administrator. You can also use the control function to start and stop solutions, with one exception: you must use Genesys Administrator to start and stop a solution of type Default Solution Type or Framework.
Starting with release 8.0, you can also stop applications and solutions gracefully, also called Graceful Stop or graceful shutdown. See Graceful Stop for more information.
To manually start and stop applications and solutions, use the start and stop commands in Genesys Administrator, locate as follows:
Solution Control Server starts applications without a user command (that is, automatically) when:
If you do not modify an Application object as described in this section, SCS automatically starts the application only at the application’s host restart, given that the application has been running prior to the host restart.
Prerequisites
- The Configuration Layer has been installed and configured, and is running.
- Either the Application object that you want to configure already exists, or you are performing this procedure while you are configuring it.
- You are logged in to Genesys Administrator.
Start of Procedure
To enable SCS to start an application automatically every time SCS establishes a connection with LCA and the latter does not report the Started status for the application:
- In Genesys Administrator, go to Provisioning > Environment > Applications, and double-click the application to open its Configuration tab.
- Click the Options tab, and select Advanced View (Annex) from the View
drop-down list.
- If there is a section called sml, select it.
- Click New.
- In the New Option dialog box, specify the following:
- In the Section field, type sml, unless it is already displayed.
- In the Name field, type autostart.
- In the Value field, type true.
- Click OK.
- Click Save and Close.
To disable an automatic application startup in scenarios in which SCS starts or in which an application was not running prior to its computer restart, either delete the autostart option or set its value to false.
What Happens During Start and Stop?
Processing the Start Command for Applications
When the Management Layer receives a request to start a particular application, SCS generates a command line and passes it to LCA, which executes the command. The command line contains:
- The working directory of the application as specified in the Application object’s Properties.
- The host name and port number of Configuration Server currently running in Primary mode.
- The application name as specified in the Application object’s Properties.
Be sure that the working directory, executable (or startup) file name, application name, and startup timeout parameters are specified correctly in the Application object’s Properties; otherwise, the Management Layer will be unable to start the application.
Unless an application is explicitly configured with a connection to Configuration Server Proxy, SCS starts the application against the Configuration Server to which SCS is currently connected. The port for connection to Configuration Server which SCS provides to the application is determined as follows:
- If the application is configured with a connection to Configuration Server, SCS starts the application using the same PortID as that configured for the connection between the application and Configuration Server.
- If the application is not configured with a connection to Configuration Server, SCS starts the application using PortID = default.
Processing the Start Command for Solutions
When the Management Layer receives a request to start a particular solution, SCS via LCA starts all applications included in the solution, in the order specified in the Solution object. The solution is considered Started when all mandatory applications that belong to it or their backup applications start successfully. When a mandatory solution component does not start, SCS determines if the solution configuration contains a backup server configured for this application. Then, one of the following happens:
- If the solution configuration does not contain a backup server, SCS interrupts the solution startup procedure and the solution status remains Stopped.
- If the solution configuration contains a backup server, SCS attempts to start the backup application:
- If successful, the solution startup procedure continues through completion. Then, the Management Layer applies the restart mechanism to applications that could not start.
- If unsuccessful, SCS interrupts the solution startup procedure and the solution status remains Stopped.
Note that after starting a mandatory application, SCS attempts to start a backup server configured for this application. This only happens when the backup server is included in the same solution. If the backup server application does not start while the primary server application is running, SCS proceeds by starting the next mandatory component.
At SCS Startup
When SCS starts, it:
- Establishes connections with all LCAs in the system and receives current statuses of all configured applications.
- Checks the applications’ configurations in the Configuration Database to determine whether you have enabled the autostart option.
- For applications that have Stopped status and have the autostart option enabled, SCS:
- Waits for the interval specified in the Startup Timeout property of a particular Application object.
- Checks whether the application’s status changes after the timeout has expired. If not, SCS starts the application as described in Processing the Start Command for Applications.
At Computer Restart
When a computer restarts, and on which Management Layer–controlled applications are installed, SCS:
- Establishes a connection with the LCA running on that computer.
- For applications that were running (that is, had Started or an equivalent status) prior to the computer restart, SCS:
- Waits for the interval specified in the Startup Timeout property of a particular Application object.
- Checks whether the application’s status changes after the timeout has expired. If not, SCS starts the application as described in Processing the Start Command for Applications.
- Identifies applications that were not running (that is, had Stopped status) prior to the computer restart.
- Checks the applications’ configurations in the Configuration Database to determine whether you have enabled the autostart option (using the procedure in Starting Applications Automatically).
- For applications that have Stopped status and have the autostart option enabled, SCS:
- Waits for the interval specified in the Startup Timeout property of a particular Application object.
- Checks whether the application’s status has changed after the timeout expires. If not, SCS starts the application as described in Processing the Start Command for Applications.
As a result, both the applications that were running prior to a computer restart and the applications that were not running but whose configuration contained the autostart option set to true are started automatically after you restart a computer.
Starting Third-Party Applications Automatically
Management Layer supports the automatic start-up and restart of third-party applications as described above. However, control and monitoring of third-party applications is performed in a different manner than that for Genesys applications. For details about how third-party applications are controlled, refer to How to Manage Third-Party Applications.
Graceful Stop
When you stop an application or a solution, it shuts down, ceasing all processing immediately. This can have a detrimental effect on the rest of the system. Starting with release 8.0, you can stop an application or a solution gracefully in a manner known as a graceful stop, or graceful shutdown.
Important
You must use Genesys Administrator to stop solutions of type Framework or Default Solution Type.
Applications that are being stopped gracefully refuse any new requests, but continue to process their current requests. Applications are stopped only after they have finished processing all of their requests.
The graceful stop command can be issued to any application. Applications that support this functionality process the command as described in the preceding paragraph. Applications that do not support the graceful stop functionality are stopped ungracefully.
For each application, you can specify a timeout with the suspending-wait-timeout configuration option in the Application object’s Annex. If the status of the application does not change to Suspending after the graceful stop command but before the timeout expires, the application is considered not to support graceful shutdown, and is stopped ungracefully.
For a solution to stop gracefully, the graceful stop command is issued to each of its composite applications. How each composite application handles the command depends on whether the application supports the graceful-stop functionality.
Important
Because a number of solutions can share the same applications, some solution components may continue to have a status of Started after you stop the solution.
For more information about graceful stop, refer to
Genesys Administrator Help. For details about the suspending-wait-timeout configuration option, refer to the
Framework Configuration Options Reference Manual.