Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Shutting down issue on Mac OS #26

Closed
suhasj opened this issue Aug 7, 2014 · 12 comments
Closed

Shutting down issue on Mac OS #26

suhasj opened this issue Aug 7, 2014 · 12 comments

Comments

@suhasj
Copy link
Contributor

suhasj commented Aug 7, 2014

The normal way to shutdown Kestrel server is by pressing enter key. On OSX, if the user hits some other key, for example, 'Ctrl + C', the process is hung and cannot be exited. Pressing 'Ctrl+Z' stop the server but the port is blocked by the process. It would be great if the experience can be made better or at least have a default message that says' Press Enter to Exit"

@jchannon
Copy link

+1

3 similar comments
@bmsullivan
Copy link

+1

@ejsmith
Copy link

ejsmith commented Sep 7, 2014

+1

@aaboyd
Copy link

aaboyd commented Oct 20, 2014

+1

@yannisgu
Copy link

Duplicate to #9

@martinalderson
Copy link

Enter doesn't kill the process for me.

@borgdylan
Copy link

on linux i have to kill the terminal to kill the process :(

@suhasj
Copy link
Contributor Author

suhasj commented Dec 3, 2014

when that happens, I think you have to hit enter multiple number of times to exit process

@selimserdengecti
Copy link

Simply hitting Enter doesn't stop kestrel on Ubuntu 14.04. Killing process not a good option to stop a service.

@davidfowl
Copy link
Member

This issue is in the wrong place. Kestrel is just a web server. https://github.com/aspnet/Hosting is responsible for lifetime management. There is an issue where kestrel doesn't shutdown cleanly but that's tracked by this bug #9

@conniey
Copy link

conniey commented Mar 26, 2015

Did someone ever add a message after running k kestrel to tell folks how to shut down the server?

I kept trying Ctrl+C, then eventually just Ctrl+Z and kill -9 until I stumbled across this thread.

@rodfraga
Copy link

On OS X just use the terminal.
1.- Open a new terminal window
2.- type "ps" to see the running processes
3.- type "kill -9 {ps id of mono running process}"

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

No branches or pull requests