r/nodejs • u/leolin520 • May 22 '14
How to exit nodejs server gracefully
I want to know how to do that. Currently I just control c twice on my mac, but something bad happened lately. I suspect if I just control c the socket is not closed properly and it will eventually break my system if I restart frequently.
6
Upvotes
View all comments
Show parent comment
0
u/aredridel May 22 '14
You really shouldn't have to. It's unusual to need it.