[ 
https://issues.apache.org/jira/browse/TIKA-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155690#comment-17155690
 ] 

ASF GitHub Bot commented on TIKA-1570:
--------------------------------------

michaelwda opened a new pull request #324:
URL: https://github.com/apache/tika/pull/324


   See https://issues.apache.org/jira/browse/TIKA-1570
   
   Add a stop method that will shutdown the watchdog process and terminate the 
JVM. This is useful for Apache Commons Daemon, allowing a user to define the 
StopClass and StopMethod. Under windows, this will allow a user to run 
tika-server as a windows service with correct start/stop behavior.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Seeking a stop method for better use with Apache Commons Daemon
> ---------------------------------------------------------------
>
>                 Key: TIKA-1570
>                 URL: https://issues.apache.org/jira/browse/TIKA-1570
>             Project: Tika
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 1.7
>            Reporter: Jason Borg
>            Priority: Minor
>
> I've got tika-server-1.7.jar from http://tika.apache.org/download.html
> I've downloaded v1.0.15 of the Windows binaries for Apache Commons Daemon 
> from http://commons.apache.org/proper/commons-daemon/binaries.html
> I can get Tika started as a service, but I can't determine what to use for a 
> stop method.
> 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
> This starts, and works as I'd hope, but when trying to stop the service it 
> doesn't respond. Obviously org.apache.tika.server.TikaServerCli.main(string[] 
> args) isn't a suitable stop method, but I'm lost for alternatives.
> Using Daemon in exe mode works for start, but gives inconsistent results for 
> stop. Adding a stop method to Tika would be ideal.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to