View Single Post
Old 04-26-2016, 02:35 PM   #9
johnelle
Zealot
johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.
 
Posts: 119
Karma: 2137668
Join Date: Mar 2015
Location: Groton, MA
Device: Kindle app on Samsung Tab
Quote:
Originally Posted by eschwartz View Post
I don't think upstart reads environment variables from /etc/environment

Why are you putting it there anyway -- it makes much more sense to declare it in the one place you are actually using it.
Well I already tried putting it the Upstart script and than didn't work either.
Code:
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

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

end script
johnelle is offline   Reply With Quote