You can create a shutdown script that runs CanSvcs.exe
before the computer shuts down.
When you shut down the Acoustic™ 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 Tealeaf Canister can become corrupted and might lose all stored data. You can create a shutdown script that keeps the operating system running until all services are stopped.
By running CanSvcs.exe
all "in-process" data is saved, which prevents the Canister from becoming corrupted.
- Open a Group Policy as a stand-alone Microsoft Management Console:
- Open the Microsoft Management Console (MMC) by clicking 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, click 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 check box.
- Click Finish.
- Click Close in the Add Standalone Snap-in dialog and OK in the Add/Remove Snap-in dialog.
- Assign a computer
- In the Console tree of Management Console, select the following:
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 beside the Script Name field and navigate to the following path:
\Program Files\TeaLeaf\CanSvcs.exe
- In the Script Parameters field, enter -stop.
- Click OK twice.
- Click Browse beside the Script Name field and navigate to the following path:
- 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
- In the Console tree of Management Console, select the following:
The registry entry HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > > >> WaitToKillServiceTimeout
determines how long the system waits for Tealeaf services to stop after notifying the service that the system is shutting down. This value is automatically set to 600,000 milliseconds (10 minutes) by the Tealeaf installer.