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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -