Controlling the TRUECHART Service
The TRUECHART service is a Windows service that is generated and automatically started upon installation of TRUECHART and can be controlled the same way as any other Windows service:
Open the Service console from the Server Manager, Start menu or by running
console.msc
.Click on TRUECHARTService from the list of services.
Start, stop or restart the service by clicking on the control buttons in the console's toolbar.
Apart from the Services console, any Windows service can be also controlled via the command line by utilizing the sc
command.
To query the status of the TRUECHART service, simply execute sc query TRUECHARTService
:
C:\>sc query TRUECHARTService
SERVICE_NAME: TRUECHARTService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0</pre>
The service can be started or stopped using sc start TRUECHARTService
or sc stop TRUECHARTService
respectivly.
Using the sc
command has the additional advantage of being both scriptable and allowing you to control the service on a remote server by putting the hostname before the control command, e.g. sc tcserver query TRUECHARTService
, where tcserver
is the hostname of the target system.
More information about sc
can be found at MSDN.