From 0a3a40c25a079ee13faed857c064f78c55746b39 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 19 Nov 2016 14:42:47 +0100 Subject: [PATCH] Added daemon instructions in readme --- readme.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/readme.md b/readme.md index 7d2b0141..b177c19c 100755 --- a/readme.md +++ b/readme.md @@ -100,3 +100,25 @@ Listen 443 ``` + +## Use calibre-web as Daemon under Linux + +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] + +[Install] +WantedBy=multi-user.target +``` + +Replace the user and ExecStart with your user and foldernames. + +`sudo systemctl enable cps.service` + +enables the service.