aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/afm-unit.conf16
1 files changed, 14 insertions, 2 deletions
diff --git a/conf/afm-unit.conf b/conf/afm-unit.conf
index 437d053..18ade85 100644
--- a/conf/afm-unit.conf
+++ b/conf/afm-unit.conf
@@ -77,6 +77,7 @@ After=afm-api-{{name}}
[Service]
SmackProcessLabel=User::App::{{id}}
+SuccessExitStatus=0 SIGKILL
{{#required-permission}}
{{#urn:AGL:permission::platform:no-oom}} OOMScoreAdjust=-500 {{/urn:AGL:permission::platform:no-oom}}
@@ -88,7 +89,8 @@ SmackProcessLabel=User::App::{{id}}
%nl
WorkingDirectory={{&#metadata.app-data-dir}}
-SuccessExitStatus=0 SIGKILL
+Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}}
+
;---------------------------------------------------------------------------------
{{#content.type=text/html}}
@@ -131,6 +133,17 @@ ExecStart=/usr/bin/afb-daemon --port={{:#metadata.http-port}} --random-token \
{{/content.type=text/html}}
;---------------------------------------------------------------------------------
+{{#content.type=application/x-executable}}
+
+%systemd-unit user
+%systemd-unit service afm-appli-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}
+Environment=LD_LIBRARY_PATH=$ORIGIN/$LIB
+
+ExecStart={{:#metadata.install-dir}}/{{content.src}}
+
+{{/content.type=application/x-executable}}
+
+;---------------------------------------------------------------------------------
{{#content.type=application/vnd.agl.service}}
%systemd-unit user
@@ -176,4 +189,3 @@ WantedBy=default.target
%end systemd-unit
{{/targets}}
-