Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
LICENSE | H A D | 22-Nov-2015 | 870 | |||
README.md | H A D | 22-Nov-2015 | 388 | |||
minwinsvc.go | H A D | 22-Nov-2015 | 662 | |||
svc_other.go | H A D | 22-Nov-2015 | 238 | |||
svc_windows.go | H A D | 22-Nov-2015 | 1.2 KiB |
README.md
1### Minimal windows service stub 2 3Programs designed to run from most *nix style operating systems 4can import this package to enable running programs as services without modifying 5them. 6 7``` 8import _ "github.com/kardianos/minwinsvc" 9``` 10 11If you need more control over the exit behavior, set 12``` 13minwinsvc.SetOnExit(func() { 14 // Do something. 15 // Within 10 seconds call: 16 os.Exit(0) 17}) 18``` 19