Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1020

/etc/init.d/fuseki looks in wrong location for .pid when responding to 'service fuseki status'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Fuseki 2.3.0
    • Fuseki 2.3.1
    • Fuseki
    • Ubuntu

    • Patch

    Description

      I see in /etc/init.d/fuseki (just 'fuseki' in the tarball)'s comment block that the pid file is placed in $FUSEKI_RUN. The script correctly puts the pidfile in $FUSEKI_RUN.

      Way down in the run() function - in the 'status' block of the case statement the script looks for the pidfile in in /var/run, /usr/var/run, $FUSEKI_HOME and /tmp. I suspect $FUSEKI_HOME is meant to be $FUSEKI_RUN (Also, $FUSEKI_PID may provide a shortcut in place of findFile, as it's previously defined as $FUSEKI_RUN/fuseki.pid).

      Having $FUSEKI_RUN set to something other that $FUSEKI_HOME causes calls to 'service fuseki status' to return ' * Fuseki is not running', even though fuseki can be accessed via its web interface, shutdown via the CLI, or seen in the the process space via the PID in its pidfile.

      The suggested modification ($FUSEKI_HOME -> FUSEKI_RUN) worked on my installation.

      Attachments

        Activity

          People

            andy Andy Seaborne
            Chris2 Chris
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified