Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] it is possible to load config.ini from a different location other than -configuration ?

Hi Neil,

I have investigated this possibility also...

but I'm afraid that it is not a short main() method in equinox...

there are lot of thing being done by EclipseStarter class before it calls the OSGi-standard factory, as shutdown hooker, listeners, storage definitions, logging and other many settings ...

it will be really hard to know what steps is important or not in order to keep bundles that I already have working...

thanks anyway,

Cristiano

On 03/02/2016 16:16, Neil Bartlett wrote:

I'm not sure if the launcher can be made to work exactly as you want, but if you use the OSGi-standard FrameworkFactory API you have pretty much total control. It only requires you to write a short Java main () method.

On 3 Feb 2016 6:38 pm, "Raymond Auge" <raymond.auge@xxxxxxxxxxx> wrote:
I think the eclipse launcher supports those as system properties.

Sincerely,
- Ray

On Wed, Feb 3, 2016 at 1:13 PM, Cristiano Gavião <cvgaviao@xxxxxxxxx> wrote:
Hello,

I'm trying to set Equinox to run as a linux systemd service.

I set the service to launch using java -jar org.eclipse.osgi -configuration /etc/myapp.

The idea was to install config.ini (set as conffile) at /etc/myapp and let the configuration data to be created at /var/lib/myapp directory.

I tried many configurations combination but it always try to create storage directories relative to where config.ini file is, which gives some errors due the fact that user which is starting it do not had permissions to create directories inside /etc dir.

one alternative that comes to mind was to create a symlimk in etc/myapp/config.ini  pointinf to var/lib/myapp/config.ini.

anyway, I would be grateful for any opinion.

thanks,

Cristiano
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev



--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top