mirror of
https://github.com/janeczku/calibre-web
synced 2024-10-31 23:26:20 +00:00
Updated Setup Service on Linux (markdown)
parent
6d01ffddd2
commit
99ff1f1699
@ -40,9 +40,33 @@ WorkingDirectory={/PATH/OF/CPS.PY without cps.py}
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
#### E.g
|
||||
`nano /etc/systemd/system/cps.service`
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Calibre-Web
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ubuntu
|
||||
ExecStart=/opt/calibre-web/venv/bin/python3 /opt/calibre-web/cps.py
|
||||
WorkingDirectory=/opt/calibre-web/
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
|
||||
### Start Service
|
||||
|
||||
Enable the service.
|
||||
`sudo systemctl enable cps.service`
|
||||
|
||||
enables the service.
|
||||
Start the service.
|
||||
`sudo systemctl start cps.service`
|
||||
|
||||
Check the status of the service or any errors.
|
||||
`sudo systemctl status cps.service`
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user