# Where to save environment variables

**URL:** <https://forum.genieacs.com/t/where-to-save-environment-variables/1218>\
**Category:** Uncategorized\
**Created:** [November 18, 2020, 12:16pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218 "2020-11-18T12:16:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![itan](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@itan](https://forum.genieacs.com/u/itan)\
**Post date:** [November 18, 2020, 12:16pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218/1 "2020-11-18T12:16:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [November 18, 2020, 12:36pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218/2 "2020-11-18T12:36:36Z")

</div>

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  
> …

---

<div class="post-metadata">

**Author:** ![itan](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@itan](https://forum.genieacs.com/u/itan)\
**Post date:** [November 18, 2020, 12:52pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218/3 "2020-11-18T12:52:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [November 18, 2020, 1:11pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218/4 "2020-11-18T13:11:14Z")

</div>

have a look at [this](https://forum.genieacs.com/t/unable-to-enable-debug-log-in-genieacs-server/1199/11)

---

<div class="post-metadata">

**Author:** ![itan](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@itan](https://forum.genieacs.com/u/itan)\
**Post date:** [November 18, 2020, 1:54pm UTC](https://forum.genieacs.com/t/where-to-save-environment-variables/1218/5 "2020-11-18T13:54:34Z")

</div>

Thank you Lavira for your help
