gajus / lightship

Abstracts readiness, liveness and startup checks and graceful shutdown of Node.js services running in Kubernetes.
Other
515 stars 33 forks source link

Question: Why are process signals not set when in "local mode" #24

Closed jorgemsrs closed 4 years ago

jorgemsrs commented 4 years ago

Hi.

I'm curious about the rationale behind the decision of only listen to signals when "in Kubernetes". Can you shed some light about it?

https://github.com/gajus/lightship/blob/2f0d23b620abf56b2ac272d8a100b7697d7f8cc5/src/factories/createLightship.js#L232-L234

Thanks for your work.

gajus commented 4 years ago

When in development environment, you want your process to restart quickly after making any changes.