View Single Post
Old 04-26-2016, 04:09 PM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by johnelle View Post
Ok so now it's exported. Makes no difference. Still doesn't work

Code:
respawn

env USER='<user>'
env PASSWORD='<pass>'
env LIBRARY_PATH='/mnt/synnas/Books/Calibre'
env CALIBRE_OVERRIDE_DATABASE_PATH='/media/cdb/metadata.db'
env PORT='888'

script

     export CALIBRE_OVERRIDE_DATABASE_PATH
     exec /usr/bin/calibre-server --with-library $LIBRARY_PATH --auto-reload \
                                  --port $PORT --username $USER --password $PAS$

end script
As far as I can tell from the man pages, that exports nothing. The "env" command seems to set the environment in a subshell. Try deleting all occurences of "env", for example leaving
Code:
LIBRARY_PATH='/mnt/synnas/Books/Calibre'
instead of
Code:
env LIBRARY_PATH='/mnt/synnas/Books/Calibre'
Then do the export.

Alternatively do
Code:
export CALIBRE_OVERRIDE_DATABASE_PATH=/media/cdb/metadata.db
chaley is offline   Reply With Quote