You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (Commented) (JIRA)" <ji...@apache.org> on 2011/10/21 13:34:32 UTC

[jira] [Commented] (KARAF-955) Confusing behavior of ConfigAdmin

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

Guillaume Nodet commented on KARAF-955:
---------------------------------------

Yes, I can see why it would be confusing, but the point is that the etc/ folder is not the central repository for configuration, so what happens is that when karaf is restarted, it still uses the old config until the new one is picked up (asynchronously).

                
> Confusing behavior of ConfigAdmin
> ---------------------------------
>
>                 Key: KARAF-955
>                 URL: https://issues.apache.org/jira/browse/KARAF-955
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 2.2.4
>            Reporter: Sergey Zhemzhitsky
>
> Hi there,
> I've faced with the following behavior of ConfigAdmin which I suppose is a little bit confusing.
> Steps to reproduce:
> # Start Karaf
> # Go to *$\{karaf.home}/data/log* directory
> # *karaf.log* file should be there
> # Stop Karaf
> # Go to *$\{karaf.home}/data/log* directory and delete *karaf.log* file
> # When Karaf is stopped change *log4j.appender.out.file* property in the *$\{karaf.home}/etc/org.ops4j.pax.logging.cfg* file from *$\{karaf.data}/log/karaf.log* to *$\{karaf.data}/log/karaf1.log*
> # Start Karaf
> # Go to *$\{karaf.home}/data/log* directory
> # Only *karaf1.log* file is expected to be there, but empty *karaf.log* that has been deleted on the step 4 is also there.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira