we can use environment variables in systemd unit I...
# openvox
y
we can use environment variables in systemd unit I believe.. then we can drop JAVA_HOME to /etc/default/… (debian) or /etc/sysconfig/… (RH) and use that in the systemd unit. I had no closer look though and I also have no idea how it was before