summaryrefslogtreecommitdiffstats
path: root/conf/generate-unit-conf/binder.inc
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-23 15:44:24 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:58 +0100
commit7998a472352c0272a90c66ab45c4c2758cd6040a (patch)
treede3fb484fa2bca0850354f611551b049083d1420 /conf/generate-unit-conf/binder.inc
parent633ebe33015554a14b773053188e2faba0faff04 (diff)
Rework on systemd start of user sessions
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/generate-unit-conf/binder.inc')
-rw-r--r--conf/generate-unit-conf/binder.inc46
1 files changed, 0 insertions, 46 deletions
diff --git a/conf/generate-unit-conf/binder.inc b/conf/generate-unit-conf/binder.inc
deleted file mode 100644
index 98efd4e..0000000
--- a/conf/generate-unit-conf/binder.inc
+++ /dev/null
@@ -1,46 +0,0 @@
-dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
-
-IF_AGL_DEVEL
-X-AFM-http-port={{:#metadata.http-port}}
-ELSE
-IF_NOT_CONTENT(application/vnd.agl.service)
-X-AFM--http-port={{:#metadata.http-port}}
-ENDIF
-ENDIF
-
-Type=notify
-ExecStart=/usr/bin/afb-daemon \
- --name afbd-TARGET \
- --rootdir={{:#metadata.install-dir}} \
- --workdir=APP_DATA_DIR/{{id}} \
-IF_AGL_DEVEL \
- --verbose \
- --verbose \
- --monitoring \
- --port={{:#metadata.http-port}} \
- --token=HELLO \
- --roothttp=ON_CONTENT(application/vnd.agl.service, ., ON_PERM(:public:no-htdocs, ., htdocs)) \
-ELSE \
- IF_CONTENT(application/vnd.agl.service) \
- --no-httpd \
- ELSE \
- --port={{:#metadata.http-port}} \
- --random-token \
- --roothttp=ON_PERM(:public:no-htdocs, ., htdocs) \
- ENDIF \
-ENDIF \
- ON_PERM(:public:applications:read, --alias=/icons:{{:#metadata.icons-dir}}) \
- {{#required-api}} \
- ON_VALUE(auto|ws, --ws-client=unix:USER_RUN_DIR/apis/ws/{{name}}) \
- ON_VALUE(dbus, --dbus-client={{name}}) \
- ON_VALUE(link, --binding=USER_RUN_DIR/apis/lib/{{name}}) \
- ON_VALUE(cloud, --cloud-client={{name}}) \
- ON_VALUE(local, --binding={{:#metadata.install-dir}}/{{name}}) \
- {{/required-api}} \
- {{#provided-api}} \
- ON_VALUE(auto|ws, --ws-server=sd:{{name}}) \
- ON_VALUE(dbus, --dbus-server={{name}}) \
- {{/provided-api}} \
- ON_CONTENT(text/html, --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t) \
- ON_CONTENT(application/vnd.agl.native, --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)
-