mirror of
https://github.com/janeczku/calibre-web
synced 2024-10-31 23:26:20 +00:00
Updated Setup Service on Linux (markdown)
parent
6cc1046ad4
commit
9b3ca9d405
@ -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.
|
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/<user>/.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]
|
[Unit]
|
||||||
@ -20,23 +40,6 @@ WorkingDirectory={/PATH/OF/CPS.PY without cps.py}
|
|||||||
WantedBy=multi-user.target
|
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/<user>/.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
|
### Start Service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user