I use the following systemd service on linux:
Code:
[eschwartz@arch ~]$ cat ~/.config/systemd/user/calibre-server@.service
[Unit]
Description=Main calibre server
After=network.target
[Service]
EnvironmentFile=/%h/.config/calibre/servers/%i.conf
ExecStart=/usr/bin/calibre-server \
--port="${port}" \
--with-library "${path}" \
--restriction "${restriction}" \
--user "${user}" \
--pass "${pass}"
[Install]
WantedBy=default.target
And in my calibre configuration folder I created a folder called servers, with ${library}.conf files:
Code:
[eschwartz@arch ~]$ cat ~/.config/calibre/servers/template.conf
path="/home/eschwartz/Calibre_Libraries/My_Library_Name"
port="8080"
restriction="some_restriction"
user="username"
pass="password"
Easy template for adding new libraries, and starts at login.
The Content Server is currently in the midst of a major rewrite, I believe one of the features will be starting multiple libraries in the same invocation but not sure of the exact details.
Server read/write mode and multiple libraries has long been suggested as a feature of the eventual rewrite, among other things.