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/ser...n-linux-system