From 6f5e4bac07daa5e667c16c4b51bb32b75fc56522 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 21 Dec 2017 22:17:21 +0100 Subject: [PATCH] fix rc.calibre-server for latest version --- xap/calibre/rc.calibre-server | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xap/calibre/rc.calibre-server b/xap/calibre/rc.calibre-server index 1ce798e9..e429b17c 100644 --- a/xap/calibre/rc.calibre-server +++ b/xap/calibre/rc.calibre-server @@ -7,11 +7,12 @@ PORT=8081 AUTH="" # uncomment and adapt to enable authtentication # AUTH=" --username=\"$USER\" --password=\"password\"" -OPTIONS=" --enable-local-writes" +OPTIONS=" --enable-local-write" +LOGFILE=/home/$USER/.calibre-server.log start() { echo "Starting Calibre server..." - su $USER -c "calibre-server --with-library=\"$CALIBRE_LIBRARY_PATH\" -p $PORT --pidfile=$PIDFILE --daemonize $AUTH $OPTIONS" & + su $USER -c "calibre-server --port=$PORT --pidfile=$PIDFILE --log=$LOGFILE --daemonize $AUTH $OPTIONS \"$CALIBRE_LIBRARY_PATH\"" & if [ $? -ne 0 ]; then echo "Could not start calibre-server." fi