Mobileread
Calibre-server suggestion: Include a flag to stop the server.
#1  Tb0n3 10-20-2019, 12:37 AM
I was setting up a systemd unit to start calibre-server and realized there doesn't seem to be a way to cleanly stop the server. Maybe it doesn't need to cleanly stop, but it would make changes easier than finding the process in htop and killing it there.
Reply 

#2  kovidgoyal 10-20-2019, 01:23 AM
The server supports systemd socket activation, and the standard --pidfile argument for non systemd service supervisors. And it shuts down cleanly on receiving SIGTERM which mean sstemd is perfectly capable of shutting it down itself. Just use the service file in the manual https://manual.calibre-ebook.com/server.html#creating-a-service-for-the-calibre-server-on-a-modern-linux-system
Reply 

Today's Posts | Search this Thread | Login | Register