Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When starting the service, then immediately stopped too #108

Open
drano opened this issue Sep 28, 2018 · 0 comments
Open

When starting the service, then immediately stopped too #108

drano opened this issue Sep 28, 2018 · 0 comments

Comments

@drano
Copy link

drano commented Sep 28, 2018

.NET Core: 2.1
PeterKottas.DotNetCore.WindowsService: 2.0.9

When I start my window service as command line, I have this message:

Starting up as a console service host
Service MyTestService started
I started
E:\dev\serviceWindowsNetCore\bin\Release\netcoreapp2.0\win-x64\log.txt
The MyTestService service is now running, press Control+C to exit.
Stopping the MyTestService service
Service MyTestService stopped
I stopped
The MyTestService service has stopped.
Control+C detected, attempting to stop service.
Service MyTestService stopped
I stopped
The MyTestService service has stopped.

Why service is stopped before call control+C ?
After installing as a window service, starting has an error message:
"The My Test Service service on Local Computer started and then stopped."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant