samsonmking / epaper.js

Node.js library for easily creating an ePaper display on a Raspberry PI using HTML and Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to cleanly exit the backend server?

kstuken opened this issue · comments

I am using this with a Waveshare 7.5 v2 display, and generally it is working well, and have also managed to get regular refreshs to work through the websocket.

But for whatever reason I cannot cleanly exit the backend script once init() is running; ctrl+c on ssh shell does not work, and sending SIGTERM via htop will also not end the script, only SIGKILL will do the job. This makes for quite a mess when testing/tweaking the static HTML on the display...

Not sure whether I am overlooking anything obvious, but any thoughts would be very welcome!

Please ignore; not exactly sure yet what changed or what is causing the server to not terminate properly, but just now it was working as expected...