如何让Supervisord读取bash环境variables

我使用Supervisord运行我的Java应用程序,这需要一些环境variables的configuration。 我在/ etc / environment中设置了环境variables

export MANAGER_URL="http://192.xxx.xxx.xxx:8080/manager/" export MANAGER_URL2="http://192.xxx.xxx.yyy:8081/manager/" 

我的主pipe/ conf.d / myjavaapp.conf如下所示:

 [supervisord] nodaemon=false logfile_maxbytes=100MB logfile_backups=0 [program:java-app] command=/usr/bin/java -jar /home/pi/deploy/java-app.jar stdout_logfile_maxbytes=200MB stdout_logfile_backups=2 stderr_logfile_maxbytes=100MB stderr_logfile_backups=0 autostart=true 

我知道我可以设置[java-app]部分的环境variables为:

 environment=MANAGER_URL="url1",MANAGER_URL2="url2" 

但是这对我不起作用,因为我需要使用Puppet清单来更新variables值,Puppet清单可以更新bash环境variables,而不是更新supervisor子stream程环境variables。

我尝试使用以下命令访问shell环境variables:

 environment=MANAGER_URL=%(MANAGER_URL)s,MANAGER_URL2=%(MANAGER_URL2)s 

但是这导致了一个错误,说明string不能被扩展。

有没有我可以读取我的supervisor.conf中的bash环境variables?

额外信息:
我正在使用raspbian
Supervisord是在systemd启动时使用/etc/init.d/中的脚本运行的
Puppet代理也由Supervisor运行,因此无法重新启动Supervisor服务