[
https://issues.apache.org/jira/browse/JENA-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15400124#comment-15400124
]
Dan Pritts edited comment on JENA-1218 at 7/29/16 10:23 PM:
------------------------------------------------------------
Yeah, here:
{noformat}
# simple replacements for LSB daemon logging functions if not defined
# Centos 6 has init-functions but not
log_daemon_msg/log_begin_msg/log_end_msg
# Define simple version - attempt to replace with /lib/lsb/init-functions
log_daemon_msg() {
echo $1
}
{noformat}
was (Author: danpritts):
Yeah, here:
# simple replacements for LSB daemon logging functions if not defined
# Centos 6 has init-functions but not
log_daemon_msg/log_begin_msg/log_end_msg
# Define simple version - attempt to replace with /lib/lsb/init-functions
log_daemon_msg() {
echo $1
}
> fuseki init script problems - log_daemon_msg doesn't work in subshell
> ----------------------------------------------------------------------
>
> Key: JENA-1218
> URL: https://issues.apache.org/jira/browse/JENA-1218
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Fuseki 2.3.1
> Environment: RHEL 6.x
> Reporter: Dan Pritts
> Priority: Minor
>
> Another init script problem.
> When you start a subshell, with the intent of exec'ing java, you try to use
> the log_daemon_msg shell function that you defined at the beginning of the
> script.
> That function doesn't exist in the subshell, so the command fails.
> I'm not sure why the subshell in the first place, but if you have to have it
> you need to define any functions in it. I hacked it to just say "echo,"
> which works for me.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)