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

Dan Pritts commented on JENA-1218:
----------------------------------

A minimal RHEL install doesn't include the LSB packages.  Minimal is what I 
typically install for servers running java apps.  

In any event, though, I added the lsb-core package and discovered that RHEL6 
doesn't have the relevant function.

{noformat}
[root@acxcore-prod0 apache-jena-fuseki-2.3.1]# cat !$
cat /lib/lsb/init-functions
#!/bin/sh

# LSB initscript functions, as defined in the LSB Spec 1.1.0
#
# Lawrence Lim <[email protected]> - Tue, 26 June 2007
# Updated to the latest LSB 3.1 spec
# 
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt

start_daemon () {
        /etc/redhat-lsb/lsb_start_daemon "$@"
}

killproc () {
        /etc/redhat-lsb/lsb_killproc "$@"
}

pidofproc () {
        /etc/redhat-lsb/lsb_pidofproc "$@"
}

log_success_msg () {
        /etc/redhat-lsb/lsb_log_message success "$@"
}

log_failure_msg () {
        /etc/redhat-lsb/lsb_log_message failure "$@"
}

log_warning_msg () {
        /etc/redhat-lsb/lsb_log_message warning "$@"
}
{noformat}


> 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)

Reply via email to