karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-2972) bin/start clean causes deletion of 'data/karaf.log' where stdout/err is going
Date Sat, 10 May 2014 22:06:31 GMT

     [ https://issues.apache.org/jira/browse/KARAF-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Lichtin updated KARAF-2972:
----------------------------------

    Description: 
bin/start script redirects stdout/err to data/karaf.out and then calls the bin/karaf script.

If the 'clean' argument is given, the bin/karaf script however will then delete the 'data'
directory.

I believe a solution is to do the stdout/err redirection in the bin/karaf script where the
JVM is launched.

{noformat}
    exec "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_ENDORSED_DIRS}" -Djava.ext.dirs="${JAVA_EXT_DIRS}"
-Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE"
-Dkaraf.data="$KARAF_DATA" -Djava.io.tmpdir="$KARAF_DATA/tmp" -Djava.util.logging.config.file="$KARAF_BASE/etc/java.util.logging.properties"
$KARAF_OPTS $OPTS -classpath "$CLASSPATH" $MAIN "$@" >> "$KARAF_DATA/karaf.out" 2>&1
{noformat}

  was:
bin/start script redirects stdout/err to data/karaf.out and then calls the bin/karaf script.

If the 'clean' argument is given, the bin/karaf script however will then delete the 'data'
directory.

I believe a solution is to do the stdout/err redirection in the bin/karaf script where the
JVM is launched.

    exec "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_ENDORSED_DIRS}" -Djava.ext.dirs="${JAVA_EXT_DIRS}"
-Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE"
-Dkaraf.data="$KARAF_DATA" -Djava.io.tmpdir="$KARAF_DATA/tmp" -Djava.util.logging.config.file="$KARAF_BASE/etc/java.util.logging.properties"
$KARAF_OPTS $OPTS -classpath "$CLASSPATH" $MAIN "$@" >> "$KARAF_DATA/karaf.out" 2>&1


> bin/start clean causes deletion of 'data/karaf.log' where stdout/err is going
> -----------------------------------------------------------------------------
>
>                 Key: KARAF-2972
>                 URL: https://issues.apache.org/jira/browse/KARAF-2972
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.4
>            Reporter: Martin Lichtin
>
> bin/start script redirects stdout/err to data/karaf.out and then calls the bin/karaf
script.
> If the 'clean' argument is given, the bin/karaf script however will then delete the 'data'
directory.
> I believe a solution is to do the stdout/err redirection in the bin/karaf script where
the JVM is launched.
> {noformat}
>     exec "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_ENDORSED_DIRS}" -Djava.ext.dirs="${JAVA_EXT_DIRS}"
-Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE"
-Dkaraf.data="$KARAF_DATA" -Djava.io.tmpdir="$KARAF_DATA/tmp" -Djava.util.logging.config.file="$KARAF_BASE/etc/java.util.logging.properties"
$KARAF_OPTS $OPTS -classpath "$CLASSPATH" $MAIN "$@" >> "$KARAF_DATA/karaf.out" 2>&1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message