You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/10/09 04:04:00 UTC

[jira] [Deleted] (KARAF-2972) bin/start clean causes deletion of 'data/karaf.log' where stdout/err is going

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

Jean-Baptiste Onofré deleted KARAF-2972:
----------------------------------------


> 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
>            Reporter: Martin Lichtin
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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 instead, as part of launching the JVM.
> {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
(v8.3.4#803005)