From 20bf07791d69cd25b73139379ccb8947c5f1b2f7 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 28 Mar 2019 11:36:05 +0100 Subject: afm-unit.conf: Add widget specific environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change allow to set environment specific to a widget in ${afm_confdir}/widget.env.d/ID/* files where ID is the ID of the widget. Setting specific environment for a given widget was not possible (except in devel/debug) before. Change-Id: I8ef9349fda9adb8eecf330ce97cc7ebcd21bf399 Signed-off-by: José Bollo --- conf/unit/generate-unit-conf/service.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'conf/unit/generate-unit-conf') diff --git a/conf/unit/generate-unit-conf/service.inc b/conf/unit/generate-unit-conf/service.inc index 6620243..fdafc5c 100644 --- a/conf/unit/generate-unit-conf/service.inc +++ b/conf/unit/generate-unit-conf/service.inc @@ -65,6 +65,7 @@ After=UNIT_NAME_API_SOCKET({{name}},%i) [Service] EnvironmentFile=-AFM_CONFIG_DIR/unit.env.d/* +EnvironmentFile=-AFM_CONFIG_DIR/widget.env.d/{{:id}}/* SmackProcessLabel=User::App::{{:id}} SuccessExitStatus=0 SIGKILL -- cgit 1.2.3-korg