Skip to content

v0.2.0

Compare
Choose a tag to compare
@phrp720 phrp720 released this 30 Oct 11:25
· 20 commits to main since this release

What's New

NSSM for Windows services

  • With version 0.2.0 this library supports the creation of services with the aid of the nssm service helper.
    So from 0.2.0 and on you can create Windows services from your go applications.

Example of Usage

builder := nssm.NewServiceBuilder()
	service := builder.ServiceName("serviceName").AppDirectory("C:\\Program Files\\Service_Folder").Application("appName").Build()
	err := nssm.CreateService(service)
	if err != nil {
		log.Print(err)
	}

Systemd Operations

  • In systemd there are some operations added separately.
    So now there are functions to start,stop,restart and enable the service.