You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/09/02 15:01:46 UTC

[jira] [Commented] (JENA-1020) /etc/init.d/fuseki looks in wrong location for .pid when responding to 'service fuseki status'

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

Andy Seaborne commented on JENA-1020:
-------------------------------------

Agreed that line looks odd.

Looks to me like that line with {{findFile}} isn't needed at all.  {{FUSEKI_PID}} maybe set externally to some wild choice (just for this script run) without setting {{FUSEKI_RUN}}.

The earlier findDirectory sets {{FUSEKI_RUN}} if necessary: the {{findFile}} is ignoring it's tests of "-w".


> /etc/init.d/fuseki looks in wrong location for .pid when responding to 'service fuseki status'
> ----------------------------------------------------------------------------------------------
>
>                 Key: JENA-1020
>                 URL: https://issues.apache.org/jira/browse/JENA-1020
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>    Affects Versions: Fuseki 2.3.0
>         Environment: Ubuntu
>            Reporter: Chris
>            Priority: Trivial
>              Labels: easyfix, easytest, patch
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)