You can create a shutdown script that runs a Tealeaf program that is called
CanSvcs.exe before the computer shuts down. This program keeps the operating system running until all Tealeaf services are stopped, allowing in-process data to be saved and preventing the Canister from becoming corrupted.
When you shut down the Tealeaf CX server, it is important to ensure all Tealeaf services were stopped before the server shuts down. If services are not stopped in time, the Canister can be corrupted and lose all stored data. Creating a shutdown script prevents this problem.
- Open a Group Policy as a stand-alone Microsoft™ Management Console (MMC) snap-in.
- Open the Microsoft Management Console (MMC) by selecting Start > Run and typing mmc in the Open field.
- In the Console menu, select Add/Remove Snap-in.
- In the Add/Remove Snap-in dialog, click Add and select Group Policy from the Add Standalone Snap-in dialog. Click Add.
- In the Select Group Policy Object dialog, browse to find the Group Policy that you want. If you want to save the Group Policy console and be able to choose which Group Policy object opens in it from the command line, select the Allow focus of the Group Policy Snap-in to be changed when launching from the command line checkbox.
- Click Finish.
- Click Close in the Add Standalone Snap-in dialog and OK in the Add/Remove Snap-in dialog.
- Assign a computer shutdown script.
- In the Console tree of Management Console, navigate to Local Computer Policy > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown).
- In the details pane, double-click Shutdown.
- In the Shutdown Properties dialog, click Add.
- In the Add a Script dialog, click Browse and navigate to \Program Files\TeaLeaf\CanSvcs.exe.
- In the Script Parameters field, enter -stop.
- Click OK twice.
- Close the MMC window and save the console.
By default, the file is saved here:
C:\Documents and Settings\<current user>\Start Menu\Programs\ Administrative Tools\ Console1.msc
WaitToKillServiceTimeoutregistry entry determines how long the system waits for Tealeaf services to stop after the system notifies the service that the system is shutting down. This value is automatically set to 600,000 milliseconds (10 minutes) by the Tealeaf CX installation program.
- Set the registry entry with the HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > WaitToKillServiceTimeout optional.