Configuring the Wait Time for a Windows Service - Advanced Design and Setup - Foundation 23.2 - Foundation 23.2 - Ready - Content Composer - external

Content Composer Advanced Design and Setup

Platform
Content Composer
Product
Advanced Design and Setup
Release
Foundation 23.2
License
When you start or stop Windows services with the Service control manager or net start / net stop command lines, the operating system waits for a specific period of time to allow the action to complete.

If the service does not start or stop within this set time, the services controller ends the action with an error.

Depending on the process, the time needed to start or stop the process as a Windows service may be longer than the operating system's default timeout allows.

  1. To extend the default timeout for starting a service, complete the following substeps.
    1. Open the respective configuration file.
    2. In the <appSettings> element, add the following line.
      <add key="AdditionalTimeOnStart" value="10000" />
      
    3. Change the value attribute to the additional time required expressed in milliseconds.
  2. To extend the default timeout for stopping a service, complete the following steps.
    1. Open the respective configuration file.
    2. In the <appSettings> element, add the following line.
      <add key="AdditionalTimeOnStop" value="10000" />
    3. Change the value attribute to the additional time required expressed in milliseconds.

    Example

    In the following example, the process requires a start and stop time require 10 seconds longer than the Windows services default.

    <configuration>
    …
      <appSettings>
        <add key="AdditionalTimeOnStart" value="10000" />
        <add key="AdditionalTimeOnStop" value="10000" />
      </appSettings>
    …
    </configuration>