golang program doesn't not work on windows services -
i made test program test.exe
package main import ( "fmt" "time" ) func main(){ for{ fmt.println("hello") time.sleep(3 * time.second) } }
i wanna register file background @ windows services (services.msc)
i tried command sc, nssm, srvany
sc create testservice binpath=c:\user\sds\desktop\test.exe nssm install testservice c:\user\sds\desktop\test.exe
service registration success in services not work going stoped 1053 error message
i wanna run program @ windows background service
plz
you should try thid part library: https://github.com/kardianos/service.
you find examples here: https://github.com/kardianos/service/tree/master/example
Comments
Post a Comment