Start Calibre-Web as service under Linux with systemd
If you want to get Calibre-Web started automatically after reboot follow this instructions. Create a file cps.service
as root in the folder /etc/systemd/system with the following content:
Replace the elements in {}
like User, ExecStart and WorkingDirectory with your username and file- and foldernames.
Service file for installation via pip
Find the location of the Calibre-Web starterfile cps
, this should be something like /home/<user>/.local/bin/cps
.
Another option is using {path to correct pythoninstance} -m cps
in the ExecStart line of the starterfile. The correct python instance depends on how you installed Calibre-Web via pip (e.g. virtual environment, system interpreter)
Service file for manual installation ("from source")
E.g
nano /etc/systemd/system/cps.service
Start Service
Enable the service.
sudo systemctl enable cps.service
Start the service.
sudo systemctl start cps.service
Check the status of the service or any errors.
sudo systemctl status cps.service