Open reechou opened 5 years ago
Did you tried by opening the console with admin privileges?
I've found we need to pass the arg as a service flag to exe, like "db-sync-up.exe -service install".
Nope. Need something like below to pass args to exe. Thanx.
if len(os.Args) > 1 { err = service.Control(s, os.Args[1]) if err != nil { log.Fatal(err) } return }
"logging" example is for flag usage.
I run the sample, but when I run "sample install", it's alway there, not stop and not end, the "sample" is still running, but do nothing, what I should do?