You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Christos Roussidis <ch...@outlook.com> on 2023/09/05 10:52:29 UTC

problem while running tika-server as a service

Hello,

I am trying to implement a tika-server as a service as being documented here https://cwiki.apache.org/confluence/display/TIKA/TikaServer#TikaServer-RunningTikaServerasUnixService but with a newer version.

Problem is when running the script, it creates all the necessary directories, user, init.d files, and then runs the /opt/tika/bin/tika script to start tika service but that script for some reason that I can’t fully understand has an exit 1 at its end. That way systemctl wrongfully things that service failed when it is in fact up and running.

Is there any meaningful reason to have the exit 1 there? It is being triggered only on the start of the tika server. For example `/opt/tika/bin/tika start`.

Thank you in advance for your help