Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#37629 - [calibre] Calibre server service

Attached to Project: Community Packages
Opened by dhead666 (dhead666) - Monday, 04 November 2013, 04:33 GMT
Last edited by Jelle van der Waa (jelly) - Tuesday, 31 December 2013, 20:28 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I recommend adding a server service.
The attached worked for me well in the past.
One should notice that:
* calibre must have writing permissions to both the db and json files.
* for each calibre library another instance of the server needed to be run (with different port and pid).
* better have callibre user and group and not run it as root.


[Unit]
Description=Calibre Service
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/calibre-server \
--daemonize \
--port=8001 \
--with-library=/path_to_calibre_library_1/ \
--pidfile=/var/run/calibre-server-1.pid
PIDFile=/var/run/calibre-server-1.pid

[Install]
WantedBy=multi-user.target
This task depends upon

Closed by  Jelle van der Waa (jelly)
Tuesday, 31 December 2013, 20:28 GMT
Reason for closing:  No response
Comment by Jelle van der Waa (jelly) - Tuesday, 05 November 2013, 17:02 GMT
I don't feel like adding a service file to calibre, plus another group/user. Also the service file is very specific per user. I guess it's nicer to add this to the wiki, so users can adapt the .service file.

Loading...