[
https://issues.apache.org/jira/browse/JENA-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15060961#comment-15060961
]
Andy Seaborne edited comment on JENA-1099 at 12/16/15 10:22 PM:
----------------------------------------------------------------
Compatibility issue:
The Java default for FUSEKI_BASE is "$FUSEKI_HOME/run".
The script tries to make it "/etc/fuseki".
If the variables are simply exported with no other changes, it becomes
FUSEKI_BASE -> "/etc/fuseki".
Choices seem to be:
* flip the default in the script, which was being ignored, to "$FUSEKI_HOME/run"
* go with the more correct (linux-wise) "/etc/fuseki" which changes default
service behaviour
* try for compatibility and check for "$FUSEKI_HOME/run" if and only if
FUSEKI_HOME is chosen by the script and not set externally or by
{{/etc/default/fuseki}}
was (Author: andy.seaborne):
Compatibility issue:
The Java default for FUSEKI_BASE is "$FUSEKI_HOME/run".
The script tries to make it "/etc/fuseki".
If the variables are simply exported with no other changes, it becomes
FUSEKI_BASE -> "/etc/fuseki".
Choices seem to be:
* flip the default in the script, which was being ignored, to "$FUSEKI_HOME/run"
* go with the more correct (linux-wise) "/etc/fuseki" which changes default
service behaviour
* try for compatibility and check for "$FUSEKI_HOME/run" if and only if
FUSEKI_HOME is chhose by the script and not set externally or by
{{/etc/default/fuseki}}
> Fuseki service script does not export FUSEKI_HOME and FUSEKI_BASE
> -----------------------------------------------------------------
>
> Key: JENA-1099
> URL: https://issues.apache.org/jira/browse/JENA-1099
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Fuseki 2.3.0
> Reporter: Andy Seaborne
>
> The usual style with {{/etc/defaults/...}} is to set but not export
> variables, leaving it to the calling script to manage environment variables.
> The "fuseki" script does not export FUSEKI_HOME and FUSEKI_BASE so the
> settings do not progate to the exec'ed java process.
> The script and the java default happen to be the same which hides the issue
> much of the time. The service script should always export these two variables.
> Workaround:
> In {{/etc/default/fuseki}}, export FUSEKI_HOME and FUSEKI_BASE, not just set
> them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)