On Wed, 4 Mar 2015, Jason wrote:
I can get Tika started as a service, but I can't determine what to use for a stop method.
There isn't really a stop method. As it stands, the Tika Server runs in a single process, started from the main method. To close it down, send it control+c or a kill signal
prunsrv.exe //IS//tika-daemon --DisplayName "Tika Daemon" --Classpath "C:\Tika Service\tika-server-1.7.jar" --StartClass "org.apache.tika.server.TikaServerCli" --StopClass "org.apache.tika.server.TikaServerCli" --StartMethod main --StopMethod main --Description "Tika Daemon Windows Service" --StartMode java --StopMode java
At first glance, that looks like the settings for starting and stopping a service which forks into the background, which isn't quite what you need for the Tika Server.
Maybe the fix is for you to help with the "war" mode for Tika (TIKA-894), then deploy that the normal way for Tomcat or Jetty?
Nick
