View Single Post
Old 06-05-2014, 04:51 PM   #8
paul55391
Enthusiast
paul55391 began at the beginning.
 
Posts: 43
Karma: 10
Join Date: Aug 2013
Device: iPad
I've figured out how to start up 2 calibre content servers for 2 libraries that are on my Mac mini server. I created 2 plist files and placed them in /Library/LaunchDaemons/. The ownership for the files needs to be set to root:wheel using 2 commands:
sudo chown root:wheel local.calibre_server_8080.plist
sudo chown root:wheel local.calibre_server_8081.plist
One plist file contains:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>local.calibre_server_8080</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/calibre.app/Contents/MacOS/calibre-server</string>
<string>--port=8080</string>
<string>--timeout=10</string>
<string>--username=calibre</string>
<string>--password=egbdfa!</string>
<string>--with-library=/Volumes/WD3TB/Calibre Library</string>
</array>
</dict>
</plist>
and the other plist file contains:

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>local.calibre_server_8081</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/calibre.app/Contents/MacOS/calibre-server</string>
<string>--port=8081</string>
<string>--timeout=10</string>
<string>--username=calibre</string>
<string>--password=egbdfa!</string>
<string>--with-library=/Volumes/WD3TB/Calibre Library (Larisa)</string>
</array>
</dict>
</plist>
Rebooting the server and I can access my two libraries anywhere in the world! (Sorry, I didn't indent the plist files but I don't know how to do that on this forum and the leading tabs and spaces got stripped out.)

Last edited by paul55391; 06-05-2014 at 10:01 PM. Reason: adjust password
paul55391 is offline   Reply With Quote