Somewhere on my todo list is to add the ability to stop tika-server on the 
commandline.   I probably won't get to this for a few months, though.

I agree with Nick's recommendation to contribute to the war, if at all possible.
 
-----Original Message-----
From: Nick Burch [mailto:[email protected]] 
Sent: Wednesday, March 04, 2015 1:22 AM
To: [email protected]
Subject: Re: Config for Tika Windows Service with Apache Commons Daemon

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

Reply via email to