Where to save environment variables

Hello,

I’m new to GenieACS, and I’m confused about where to save environment variables. Is it always in genieacs.env, or just .env file in the app root directory? Thx in advance

Hi, can be any file name or location but you must specify it in the systemd service file definition in order for genieacs processes to read them at start if you start it by systemd (else you must manually load the env file before starting genieacs).

For example, I have mine stored in /etc/tr069-config.env and in the systemd service i have:


[Service]
EnvironmentFile=/etc/tr069-config.env

Hi Lavira, thank you for the reply. However, I am not using systemd. It is installed on a FreeBSD server. Any idea how to handle it on FreeBSD?

Thank you again

have a look at this

Thank you Lavira for your help