Skip to content

Setup Service on Linux

Ozzie Isaacs edited this page Mar 6, 2020 · 9 revisions

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:

[Unit]
Description=Calibre-Web

[Service]
Type=simple
User={Username}
ExecStart={path to python} {/PATH/TO/cps.py including cps.py}
WorkingDirectory={/PATH/OF/CPS.PY without cps.py}

[Install]
WantedBy=multi-user.target

Replace the elements in '{}' like User, ExecStart and WorkingDirectory with your username and file- and foldernames.

sudo systemctl enable cps.service

enables the service.