You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Andre Schlegel-Tylla <an...@virtimo.de> on 2021/04/27 07:41:41 UTC

setenv missing in karaf-service

Hello,

is there a reason why the generated karaf-service file (service-wrapper
feature) don't load the setenv file?

We have a prepared setenv file for our needs. But when we want to use the
wrapper we have to manually fix the karaf-service file.

Regards
Andre

Re: setenv missing in karaf-service

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Andre,

The reason is because the format is not the same: service wrapper uses tanuki wrapper (old version due to license contraint).

The Karaf-service is supposed to only launch wrapper, and wrapper using the Karaf-wrapper.conf where you define the config.
As the Karaf-service is executed at system level, it should be pretty simple and not load any env variable (it should be done in the wrapper).

So, to simplify:
- setenv is for scripting like karaf, client, etc, but not wrapper
- karaf-wrapper.conf is for wrapper

Regards
JB

> Le 27 avr. 2021 à 09:41, Andre Schlegel-Tylla <an...@virtimo.de> a écrit :
> 
> Hello,
> 
> is there a reason why the generated karaf-service file (service-wrapper
> feature) don't load the setenv file?
> 
> We have a prepared setenv file for our needs. But when we want to use the
> wrapper we have to manually fix the karaf-service file.
> 
> Regards
> Andre