summaryrefslogtreecommitdiffstats
path: root/conf/afm-unit.conf
AgeCommit message (Collapse)AuthorFilesLines
2017-04-19Improve environment settingJosé Bollo1-282/+0
Some environment variable were set in the configuration files. This wasn't a valuable solution. Allowing now system tning to put environment variables in files of /etc/afm/unit.env.d is much more flexible. Change-Id: I1796061c9055a2860f0bbab340aa3a6e7b85dd3d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-24Improve afm-unit.confJosé Bollo1-7/+9
This commit introduces a common clear name for services bound to websockets. It also improves the formating of commands to be run by afb-daemon. It also removes an unsupported key (commented). Change-Id: I4e6e74eef50b89ba82d2c33d4c94faab8f07b587 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-21Allows or in mustache instanciationJosé Bollo1-91/+22
This allows to simplify the configuration file afm-unit.conf. Restore the type application/vnd.agl.service Change-Id: Iaadde2c2d96155cea6d1b8bee4d3c78e885cf44a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-20Provide unit in config.xml and documentationJosé Bollo1-27/+150
This commit remove urn:AGL:widget:provided-application in favour of urn:AGL:widget:provided-unit. In the same time, the feature urn:AGL:widget:provided-api must be attached to a unit. This will enable to export more than one API for a unit if needed. Change-Id: I17ade3651db2cd61402875333d063ee05cf57a10 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17Switch to use systemd databaseJosé Bollo1-12/+43
Installation now creates unit files. This commits use these created unit files to fill the application database of afm-user-daemon. Change-Id: Ice39d3ff51b6afe41609f3ce4ff0e89b2f3a0ca7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-unit: add management of wanted-by in unit descriptionsJosé Bollo1-3/+7
This allows the automatic creation of the links in wants subdirectories. Change-Id: Ib948fb11abbbd902f733279136f51ad1649923ef Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17afm-unit.conf: adds type application/x-executableJosé Bollo1-2/+14
Change-Id: Ie62113512094909bd02e7e89fd44b56a9df67d17 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14afm-unit.conf: connect to systemd socketsJosé Bollo1-4/+9
Change-Id: I45d4ae48d47d8690f41222df4d05c04cd241ce37 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Set the workdir in afm/afm-unit.confJosé Bollo1-2/+2
I'm not sure that it will be still present at the end but let go ahead with that. Change-Id: I123035c29c049c780b71b4181c15bd2d3a96e7c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Adds SIGKILL as normal exit statusJosé Bollo1-0/+1
Change-Id: Ia67df22859b23d9da614d619d84900654bb2f7a0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02adds 'run-by-default' permissionJosé Bollo1-0/+5
Change-Id: Ie327c0253ea12e8a0b837195653f0762b76c9f79 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-03Rename binding to api in config.xmljobol1-5/+5
Signed-off-by: jobol <jose.bollo@iot.bzh>
2017-01-26Prepare the Integration with systemdJosé Bollo1-0/+168
This is an intermediate commit providing basic functionnalities for setting up integration of the framework with systemd. - file afm-unit.conf is a mustache template - translation of config.xml to json object - mustache (extended) application of the json to the template - post processing of the result for extracting unit files This processing is currently available as a test (and a tool) and will be integrated after more developement, test and validation. Signed-off-by: José Bollo <jose.bollo@iot.bzh>