You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. im making a Application which is running as a Windows Serivce.
The Application working fine on development, but when i try to run it as install and start running as a Windows Serivce,
The Application cannot write log file.
Env:
Window server 2016
Golang version lastest
gopkg.in/natefinch/lumberjack.v2 v2.2.1
github.com/kardianos/service v1.2.2
Steps:
run build with command: GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -ldflags="-w -s"
run install service with cmd: E:\GoLang\Project\TestApp.exe install
run start service with cmd: E:\GoLang\Project\TestApp.exe start => Error: Failed to start iLotusLand-Watchman-Go-v2: An instance of the service is already running
The service is running now, can see it in Services, and TaskManager
and The service Log on as Local system account
If i run it by just double click on .exe file, the log file are writing normally
but no output logfile when the it running as a Windows service
Hi there. im making a Application which is running as a Windows Serivce.
The Application working fine on development, but when i try to run it as install and start running as a Windows Serivce,
The Application cannot write log file.
Env:
Window server 2016
Golang version lastest
gopkg.in/natefinch/lumberjack.v2 v2.2.1
github.com/kardianos/service v1.2.2
Steps:
run build with command:
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -ldflags="-w -s"
run install service with cmd:
E:\GoLang\Project\TestApp.exe install
run start service with cmd:
E:\GoLang\Project\TestApp.exe start
=> Error: Failed to start iLotusLand-Watchman-Go-v2: An instance of the service is already runningThe service is running now, can see it in Services, and TaskManager
and The service Log on as Local system account
If i run it by just double click on .exe file, the log file are writing normally
but no output logfile when the it running as a Windows service
The text was updated successfully, but these errors were encountered: