Managing the Klocwork Servers
Managing the Klocwork ServersThere are three servers that are installed as a part of your Klocwork installation:
When do I need to manage these servers?These servers need to be restarted if changes are made to the following:
For more information on starting and stopping your servers, see the following: Requirements for starting servers
Starting the servers as regular processesTo start all of the Klocwork Servers as regular processes, run the following command: kwservice --projects-root <projects_root> start where <projects_root> is the projects_root directory you want to use To start one of the Klocwork Servers, run the following command: kwservice --projects-root <projects_root> start [<server_name>] where
Examples To start all Klocwork Servers: kwservice --projects-root "C:\Klocwork\Server 18.1\projects_root" start
To start the Klocwork Server: kwservice --projects-root "C:\Klocwork\Server 18.1\projects_root" start klocwork
You see messages indicating that the servers have been started, showing the server host name and port number and the path to the projects_root. For example: Using projects root: C:\Klocwork\Server 18.1\projects_root Local Host is: serverxyz.com [13.1.1.142] Starting License Server [started on serverxyz.com:27000] (projects root is C:\Klocwork\Server 18.1\projects_root) Starting Database Server [started on serverxyz.com:3306] (projects root is C:\Klocwork\Server 18.1\projects_root) Starting Klocwork Server [started on serverxyz.com:8080] Starting the servers as Windows servicesYour Windows services may already be running. During installation you have the option of automatically starting the Klocwork Servers as Windows services when installation has completed. Note: It is not possible to run two sets of the Klocwork Servers as Windows Services on one host when the servers are of the same Klocwork version.
When running the Klocwork Servers as Windows Services, the Klocwork Server is dependent on the Database Server. This means:
To start or restart one or more Klocwork Servers as Windows services, use the Windows Services Administration Control Panel. Alternatively, use the following commands: net start "Klocwork 18.1 Database Server" net start "Klocwork 18.1 License Server" net start "Klocwork 18.1 Server" Requirements for stopping servers
Note: The messages indicating that the servers have stopped actually occur while they are stopping. Before you start another process such as restarting the servers or doing a backup, wait a minute.
Stopping the servers running as regular processesTo stop all of the Klocwork Servers running as regular processes, run the following command: kwservice --projects-root <projects_root> stop where <projects_root> is the projects_root directory you want to use To stop one of the Klocwork Servers, run the following command: kwservice --projects-root <projects_root> stop <server_name> where
Examples To stop all Klocwork Servers: kwservice --projects-root "C:\Klocwork\Server 18.1\projects_root" stop
To stop just the Klocwork Server: kwservice --projects-root "C:\Klocwork\Server 18.1\projects_root" stop klocwork
You see messages indicating that the servers have been stopped. For example: Using projects root: C:\Klocwork\Server 18.1\projects_root
Local Host is: serverxyz.com [13.1.1.142] Stopping License server [stopped] Stopping Database server [stopped] Stopping Klocwork server [stopped] Stopping the servers running as Windows servicesWhen running the Klocwork servers as Windows Services, the Klocwork Server is dependent on the Klocwork Database Server. This means:
To stop one or more Klocwork Servers running as Windows services, use the Windows Services Administration Control Panel. Alternatively, use the following commands: net stop "Klocwork 18.1 Server" net stop "Klocwork 18.1 Database Server" net stop "Klocwork 18.1 License Server" |