-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Setup Service on Linux
Ozzie Isaacs edited this page Mar 6, 2020
·
9 revisions
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.