takama / daemon

A daemon package for use with Go (golang) services
MIT License
1.96k stars 292 forks source link

Refactored example to make it work on windows #96

Closed filippo-veneri closed 4 years ago

filippo-veneri commented 4 years ago

The windows implementation of the Daemon interface method Run now uses golang.org/x/sys/windows/svc/debug.Run to run the service in interactive mode. This means that the Run method of Executable interface is never invoked on windows. Updated golang.org/x/sys dependency to latest version. Some cleanup in daemon_windows.go to make linter happy.

filippo-veneri commented 4 years ago

Closing PR because it was done against wrong branch (master instead of develop)