Hello,

I would say this is mostly a systemd question on how to setup environment
variables, not an OFBiz specific question.

The answer is probably not simple because there are many ways. One way for
example is to use Environment= or EnvironmentFile=. Alternatively you can
do something like systemctl edit ofbiz-service and then edit the conf file.
Check [1] for more info.

[1]
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines

On Sat, Aug 10, 2019, 2:05 PM Bagas Sanjaya <[email protected]> wrote:

> Hello,
>
> I'd like to create systemd unit for my OFBiz setup which run with JDK from
> Oracle.
>
> However, I don't know how to set environment variables required (JAVA_HOME
> and PATH). How can I set them correctly?
>
> I installed Oracle JDK to /opt/jdk1.8.0_201 and OFBiz to
> /opt/apache-ofbiz-16.11.05.
>
> Kind regards, Bagas
>
> --
> An old man doll... just what I always wanted! - Clara
>
>

Reply via email to