[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] it is possible to load config.ini from a different location other than -configuration ?
- From: Cristiano GaviÃo <cvgaviao@xxxxxxxxx>
- Date: Wed, 3 Feb 2016 15:13:52 -0300
- Delivered-to: firstname.lastname@example.org
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
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
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.