If the an [Environment]
section is set at service frontend file, the [Environment]
section is copied to the /etc/66/conf/<service_name>/<service_version>/.service_name
file.
Note: The file name is prefixed with a dot.
This file is always written when the parser is called. That means that every single changes made on this file will be lost. This is ensure you to you always have the environment variables set by upstream matching the needs of the service to be started properly.
However, to suit your needs you may want to change a value of a key=value
pair or and a new one for a modified service. In that case, you need to make a copy of the upstream file to a new file at /etc/66/conf/<service_name>/<service_version>/
directories.
To accomplish this task, you have two solutions:
/etc/66/conf/<service_name>/<service_version>/.service_name
to /etc/66/conf/<service_name>/<service_version>/service_name
. The copied file can be named as you want.At the service start process, the execl-envfile program will parses and reads every single file found at the /etc/66/conf/<service_name>/<service_version>/
directory in alphabetical order. That means that the upstream file will be read before any other file define within /etc/66/conf/<service_name>/<service_version>/
directory. At the end of the process, for a same key=value
pair found at the upstream and modified file, the key=value
pair coming from the modified file read will be used.