takama/daemon

run example on windows 10 failed

Closed this issue · 1 comments

build example,use example.exe install,it run successfull,and create the service named myservice.
but when i use example start,it show the error like

Error:  The dependency service does not exist or has been marked for deletion.

the go env is:

set GOARCH=386
set GOBIN=
set GOCACHE=C:\Users\go\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\msys64\home\go\core
set GORACE=
set GOROOT=D:\go
set GOTMPDIR=
set GOTOOLDIR=D:\go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=sse2
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\go\AppData\Local\Temp\go-build086027322=/tmp/go-build -gno-record-gcc-switches

I find the reason:i run go build,the execute is example.exe,should use go build -o myservice.exe myservice.go