To be more correct, it works in one script and fails in another :-(
The two scripts share IDENTICAL code for the shutdown / restart:
Code:
if (ps -ef | grep "/opt/calibre/bin/calibre" | grep -v grep > /dev/null)
then
RUNNING=TRUE
WITH_LIB="--with-library=http://localhost:8080/"
fi
......
[[ -n ${RUNNING} ]] && /usr/bin/calibre -s
.....
[[ -n ${RUNNING} ]] && /usr/bin/calibre &
One of these scripts works exactly as expected; the other one fails with:
Code:
[Errno 111] Connection refused
'shutdown:'
FYI, Both scripts are shutting down calibre so that I can run "calibredb catalog" with some very specific options, and then import the results.
How can I debug the "Connection refused" error?
Environment:
Calibre 6.28.1
OpenSUSE 15.4 with all current patches
XFCE desktop
Thanks!
Dan