[
https://issues.apache.org/jira/browse/KARAF-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roland Hauser updated KARAF-4884:
---------------------------------
Description:
I'm would like to use the InspetIT Profiler for gathering perfomance data. Its
agent requires, that the directory, where "java.io.tmpdir" points to, does
exist. It uses File.createTempFile which fails when the temp directory does not
exist. As a workaround, I added "mkdir -p ${KARAF_DATA}/tmp" just before Karaf
Main is called (script "karaf"):
{code}
if [ "${ROOT_INSTANCE_RUNNING}" = "false" ] || [
"${CHECK_ROOT_INSTANCE_RUNNING}" = "false" ] ; then
# Make sure that the tmp directory exists
mkdir -p ${KARAF_DATA}/tmp
...
{code}
was:
I'm would like to use the InspetIT Profiler for gathering perfomance data. Its
agent requires, that the directory, where "java.io.tmpdir" points to, does
exist. It uses File.createTempFile which fails when the temp directory does not
exist. As a workaround, I added "mkdir -p ${KARAF_DATA}/tmp" just before Karaf
Main is called (script "karaf"):
{code language="bash"}
if [ "${ROOT_INSTANCE_RUNNING}" = "false" ] || [
"${CHECK_ROOT_INSTANCE_RUNNING}" = "false" ] ; then
# Make sure that the tmp directory exists
mkdir -p ${KARAF_DATA}/tmp
{code}
...
> Insure that $KARAF_DATA/log exists before starting Karaf instance
> -----------------------------------------------------------------
>
> Key: KARAF-4884
> URL: https://issues.apache.org/jira/browse/KARAF-4884
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.0.7
> Reporter: Roland Hauser
> Priority: Minor
>
> I'm would like to use the InspetIT Profiler for gathering perfomance data.
> Its agent requires, that the directory, where "java.io.tmpdir" points to,
> does exist. It uses File.createTempFile which fails when the temp directory
> does not exist. As a workaround, I added "mkdir -p ${KARAF_DATA}/tmp" just
> before Karaf Main is called (script "karaf"):
> {code}
> if [ "${ROOT_INSTANCE_RUNNING}" = "false" ] || [
> "${CHECK_ROOT_INSTANCE_RUNNING}" = "false" ] ; then
>
> # Make sure that the tmp directory exists
> mkdir -p ${KARAF_DATA}/tmp
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)