Hi!
Is there a chance to configure any persistence without a file in conf/persistence/ ?
I mean e.g. at compile time, with a properties file or whatever?
Hi!
Is there a chance to configure any persistence without a file in conf/persistence/ ?
I mean e.g. at compile time, with a properties file or whatever?
I have the same question
From what I have seen: It seems not…
I checked /var/lib/openhab2/config/org/eclipse/smarthome/persistence.config
and there is no reference to a file (to /var/lib/openhab2/etc/
) in there
I would like also to understand where does OH2 store info that are loaded from the /etc/openhab2/persistence/mapdb.persist
file (for example).
Maybe it doesn’t “copy” and store the info but just uses that file.
Check out https://github.com/eclipse/smarthome/pull/2094.
It’s description says “allows a programmatically configuration of persistence services” - so you should be able to create a bundle that provides a specific configuration for your needs.
Correct, that is already a config file, so no need to copy it anywhere else!
I also tried to get into that mechanism of loading .persist-Files which ends in a very deep dive.
Thanks Kai, thats what I needed!