From 9b3ca9d405c0a2466b8aa360b4474d1dff4edc4b Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Tue, 15 Nov 2022 18:52:34 +0100 Subject: [PATCH] Updated Setup Service on Linux (markdown) --- Setup-Service-on-Linux.md | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/Setup-Service-on-Linux.md b/Setup-Service-on-Linux.md index d650a2b..3bfda66 100644 --- a/Setup-Service-on-Linux.md +++ b/Setup-Service-on-Linux.md @@ -4,7 +4,27 @@ If you want to get Calibre-Web started automatically after reboot follow this in Replace the elements in `{}` like User, ExecStart and WorkingDirectory with your username and file- and foldernames. -### Service file for installation from source +### Service file for installation via pip + +Find the location of the Calibre-Web starterfile `cps`, this should be something like `/home//.local/bin/cps`. + +``` +[Unit] +Description=Calibre-Web + +[Service] +Type=simple +User={Username} +ExecStart={path to starterfile} + +[Install] +WantedBy=multi-user.target +``` + +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") ``` [Unit] @@ -20,23 +40,6 @@ WorkingDirectory={/PATH/OF/CPS.PY without cps.py} WantedBy=multi-user.target ``` -### Service file for installation via pip - -Find the location of the Calibre-Web starterfile `cps`, this should be something like `/home//.local/bin/cps`. -Another option is using `{path to correct pythoninstance} -m cps` as starterfile. The correct python instance depends on how you installed Calibre-Web (e.g. virtual environment, system interpreter) - -``` -[Unit] -Description=Calibre-Web - -[Service] -Type=simple -User={Username} -ExecStart={path to starterfile} - -[Install] -WantedBy=multi-user.target -``` ### Start Service