karaf/etc configuration directory

View: New views
2 Messages — Rating Filter:   Alert me  

karaf/etc configuration directory

by akollegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm a little confused by the proper use of the configuration files in  
the karaf/etc directory. I see how they are used
for initial configuration, and are monitored to allow dynamic  
updating. This is great.

But, I can't seem to follow the pattern for adding configuration for  
new services. For instance, if I install the http
feature then pax-web gets deployed and I can use the config commands  
to change settings. However, adding
an org.ops4j.pax.web.cfg file to the etc directory does not get  
associated with the service.

I see in config.properties that a File Monitor is set up for all *.cfg  
files in the etc directory, so it seems like this
should work. Is it not enough to add a <service.pid>.cfg to the etc  
directory? What's the right way to do this?

Thanks for any guidance,
Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: karaf/etc configuration directory

by gnodet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not sure what happens, but it should work.
Could you raise a JIRA issue and write down the exact steps to
reproduce the problem.
I'll try to have a look asap (and fix any problem before 1.0.2).

On Sun, Oct 18, 2009 at 02:04, Andreas Kollegger <andreas@...> wrote:

> Hi all,
>
> I'm a little confused by the proper use of the configuration files in the
> karaf/etc directory. I see how they are used
> for initial configuration, and are monitored to allow dynamic updating. This
> is great.
>
> But, I can't seem to follow the pattern for adding configuration for new
> services. For instance, if I install the http
> feature then pax-web gets deployed and I can use the config commands to
> change settings. However, adding
> an org.ops4j.pax.web.cfg file to the etc directory does not get associated
> with the service.
>
> I see in config.properties that a File Monitor is set up for all *.cfg files
> in the etc directory, so it seems like this
> should work. Is it not enough to add a <service.pid>.cfg to the etc
> directory? What's the right way to do this?
>
> Thanks for any guidance,
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...