Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1570

Seeking a stop method for better use with Apache Commons Daemon

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.7
    • 2.4.1
    • server
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Snixtor Jason Borg
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: