Thanks Ben for your information.
The main reason behind this research is, that quite a few users had problems with the time zone within java (there are quite a few threads about this here). To solve this problem you could add
EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin"
to this file
/etc/default/openhab
but from time to time this file gets overwritten with default values, probably after updates.
So I think there should be a safe place to override settings to environment variables (like backup, heap memory, time zone, etc) and I thought it is linux.parameters but I seem to be wrong.
Do you know of a different place to store environment variables? Otherwise I’ll open a ticket.
Would you agree to add the following line
EnvironmentFile=-/etc/openhab/linux.parameters
to the service section of this file
/etc/systemd/system/openhab.service
?
EDIT:
I made a quick lookup on github and found out the older init daemon /etc/init.d/deb/openhab had linux.parameters included:
# Override configuration variables from user file if it present
if [ -r ${OPENHAB_CONF}/linux.parameters ]; then
. ${OPENHAB_CONF}/linux.parameters
fi
Probably for certain reasons that was dropped in systemd. But makes sense to me to reinclude it again