lnx-search / lnx

⚡ Insanely fast, 🌟 Feature-rich searching. lnx is the adaptable, typo tollerant deployment of the tantivy search engine.
https://lnx.rs
MIT License
1.25k stars 46 forks source link

Handle unix signals better preventing more issues like #64 #65

Closed ChillFish8 closed 2 years ago

ChillFish8 commented 2 years ago

This PR fixes / prevent issues arising from the process not shutting down correctly due to a signal other than SIGINT being sent to the server in order to shut the process down.

We're essentially just adding additional listeners for SIGINT, SIGTERM and SIGQUIT which should cover most systems' default way of shutting processes down.

Hopefully prevents #64