felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@gmail.com>
Subject Re: Scripting felix
Date Tue, 13 Apr 2010 12:05:06 GMT
Are you trying to have karaf automatically installed as a service using
wrapper:install ?
The problem is that you need to launch it the first time in order to install
and launch the commands.
It might be possible do have that done from the outside: we already do that
for the etc/admin shell
which calls a java class which in turn delegate to the admin commands.
 Having the same mechanism
for the wrapper command could make sense too, or maybe we could move the
wrapper command into
the admin shell or something like that.  Anyway, I think it's the best way
for you.

On Tue, Apr 13, 2010 at 13:24, Jim Talbut <Jim.Talbut@groupgti.com> wrote:

> Hi,
> I'm new to OSGi and felix, so forgive a silly question.
> I need to set up a few felix/karaf/camel instances and I need them all to
> be identical.
> To achieve this I want to script the instructions for karaf, but I can't
> find any way to get an external file of instructions to run in karaf.
> Is there any kind of batch facility in karaf, or a bundle to provide that
> ability?
> The nearest I've got is sshing in to karaf and running one command at a
> time, but that requires me to enter the password with each connection.
> Is it possible to configure the ssh daemon in karaf with an authorized_key?
> I know I can provision facilities using
> org.apache.felix.karaf.features.cfg, but that doesn't (for example) let me
> run wrappers:install after the bundle is activated.
> I also tried adding commands to shell.init.script, but that doesn't run
> wrappers:install either.
> Thanks
> Jim

Guillaume Nodet
Blog: http://gnodet.blogspot.com/
Open Source SOA

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message