Quote:
Originally Posted by eschwartz
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