Press "Enter" to skip to content

K2: How to start K2 with development license as a service

0

When you install K2 Blackpearl with development license, you can only start it in a console mode. This is not always convenient, especially when developers in a company should not know the credentials of a K2 Service account or when you need to set up Continuous Integration and then test automatic builds with K2 Service restart.
Fortunately, there is a workaround. All you need to do is to download a tiny tool – the Non-Sucking Service Manager.
Below I will show you how to install the tool and configure it to run K2 Blackpearl Server as a Service.
1. You need to download the stable version of the tool and unpack it. Let’s say – unpack it to the NSSM folder on C drive:


image
2. Afterwards, you need to remove the existing K2 blackpearl Server service and configure the nssm tool. For this you need to run the commands below in a command prompt OR powershell as Administrator:
3. As soon as you run these 2 commands, you will see the following window, where you can configure your new Service:
image
We are mostly interested in the following tabs:
3.1 Application configuration:
image
3.2 Log on configuration:
image

Click Install service button and, if created successfully,  you will see that the service is listed in the list of services and can be Started/Stopped as a normal service.
For more information on the usage of the NSSM – the Non-Sucking Service Manager, please, refer to their web-site.

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 3 =