10

In order to start a Tika server that can be accessed from hosts other that localhost we know that the way to go is (say I have version 1.7 and want to run on port 9998)

java -jar tika-server-1.7-SNAPSHOT.jar -host 0.0.0.0

My question is: Is there a proper way to properly stop this server with a command or is killing the process the only way?

Gary
  • 13,303
  • 18
  • 49
  • 71
pebox11
  • 3,377
  • 5
  • 32
  • 57

2 Answers2

2

As of October 2019 there is no programmatic way to shut it down. Documentation notes:

In the future, we may implement a gentler shutdown than we currently have.

andruso
  • 1,955
  • 1
  • 18
  • 26
0

Apache tika 2.4.1 added stop() method to TikaServerCli so that it can be run with Apache Commons Daemon.

https://issues.apache.org/jira/browse/TIKA-1570

https://downloads.apache.org/tika/2.4.1/CHANGES-2.4.1.txt

SANN3
  • 9,459
  • 6
  • 61
  • 97