v0.2.0
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.