psc
Description
Psc stands for PSQL service controller. The utility retrieves and sets control information about PSQL services.
You must have administrator authority to run psc.
Synopsis
psc < start | stop | restart | query | getpolicy > servicename
or
psc setpolicy servicename < automatic | manual | disabled >
Options
A service specifies the name of a program, routine, or process that performs a specific system function to support other programs, particularly at a low level (close to the hardware). Servicename specifies the name given to the service key in the registry. Note that service key name may differ – and in most cases does differ – from the service display name.
The options described below are case-insensitive.
Specifies whether servicename is running or not
Retrieves the type of startmode (automatic, manual, or disabled) associated with servicename
Sets the type of startmode (automatic, manual, or disabled) associated with servicename
Examples
To start the Workgroup Engine service manually:
psc start psqlWGE
To start the Cache Engine service manually:
psc start psqlCE
To stop, then restart the PSQL transactional and relational services:
psc restart psql.all
Note that psql.all is a shortcut method available only with the psc utility. It affects both the PSQL transactional and relational services and can be used with the psc parameters start, stop, or restart.
Return Codes
The psc utility returns the following codes (DOS ERRORLEVEL) for the state of the service after the psc command has been run.