OpenbeeScanOCS service starts but remains in exited state

Problem:

The problem is because of a pidfile not removed

Solution:

Add the -Dpidfile.path=/dev/null option to the /etc/default/openbeescanocs file

(JAVA_OPTS=”-DOB_CONVERSION_HOME=/usr/share/openbeescanocs -DOCS_HOME=/usr/share/openbeescanocs -DTESSDATA_PREFIX=/usr/local/tesseract-ocr -Dhttps.port=9443 -Dpidfile.path=/dev/null -Dhttp.port=8080 $JAVA_OPTS” )

Stop and start   the service.