summaryrefslogtreecommitdiffstats
path: root/conf
AgeCommit message (Collapse)AuthorFilesLines
2017-12-28unit.conf: Explicit dependency to user-config.serviceeel_5.1.0eel_5.0.3eel_5.0.2eel_5.0.1eel_5.0.0eel/5.1.0eel/5.0.3eel/5.0.2eel/5.0.1eel/5.0.05.1.05.0.35.0.25.0.15.0.0José Bollo2-0/+4
Some times, some services (like weston) are starting too much slowly, implying errors on applications that need it (like homescreen). To avoid the issue, an explicit dependency to user-config.service is added. That service, user-config.service, has an implicit dependency to user-config.path that waits weston to be started. Bug-AGL: SPEC-1199 Change-Id: I7a5b9fd2d5fbd0d6ca778d78db5147a849ddcd6e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-01afm-unit-debug.conf: Move monitoring optionJosé Bollo1-1/+1
Put it in the same place that other unconditionnal options Change-Id: I75fc5503db6fd9776299564b4a559a5bbf889952 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-01afm-unit-debug.conf: Increase the verbosity in debugJosé Bollo1-0/+1
Latest version of the binder separated the verbosity levels of WARNING and NOTICE. This commits asks for notice report by default in debug. Change-Id: Ibdaf16560384c7f2576066250e42c44074501ebb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-31afm-unit.conf: improve setting of namesJosé Bollo2-4/+4
The names are now prefixed by "afbd-" to clearly identify the binder daemon. Change-Id: I0dbd0a5dd68260a6315599e18e3e2f4a6be3efc5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afm-unit.conf: use option --name for setting binder nameJosé Bollo2-7/+17
Also enforce output to journal Change-Id: I85957cfb8cc7e2264c9146ca18c352a0af347934 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afm-unit-debug.conf: add --monitoring optionJosé Bollo1-0/+1
Change-Id: I3174738bf4c164513bb6a0399584784548b22c2c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afm-unit-debug.conf: provides a default tokenJosé Bollo1-1/+1
The default token is set to HELLO Change-Id: I275c8d91633f4b6aa596c6195b90f1ad7c1b0cde Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afn-unit.conf: Fix bug for option --no-httpdJosé Bollo2-25/+23
The option --no-httpd is applied for applications of type 'application/vnd.agl.service' but the option was misplaced in the command line. On an other hand, setting --no-httpd makes option --roothttp irrevelant. Also, the option is currently not to be applied when AGL_DEVEL (pulling afm-unit-debug.in) is required. Change-Id: I05b15fa2a847a5564d7c88ce7ac47cd8a2a29f40 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08afm-unit.conf: refactor LD_LIBRARY_PATH valueJosé Bollo2-4/+4
Changes from LD_LIBRARY_PATH=$ORIGIN/$LIB to LD_LIBRARY_PATH=$ORIGIN/lib because $LIB isn't univoque for integrators while lib is. Change-Id: Ic4b2f8bb1410c35f75eb957a0ebc10141f995aba Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-07Set explicit path for services and unitsJosé Bollo2-0/+2
This patch removes references to /usr/local and add reference to the installation directory. The companion programs can be run using path relatives to the installation directory. Bug-AGL: SPEC-384 Change-Id: I7e10be1d0df1b62f3be0104f88d1787dd849d152 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-03Fix socket dependency for afb serviceRonan Le Martret2-4/+4
Change-Id: Icb65d7165e1f1c0811f170effe148606bc367872 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-07-24Add service debugging support (afm-debug).Sebastien Douheret3-3/+295
Add necessary tools/scripts, such as afm-debug, to allow service binding. These tools are only available in develvopment (AGL_DEVEL is set). Change-Id: I4e946146af985c74c8bd97d8c118b932394bbc5e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh> Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-07unit.conf: Allow service to run by defaultJosé Bollo1-2/+0
Change-Id: Ifc2d1795041d0254af7db518f64c988bb747200c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix socket activationJosé Bollo1-3/+6
Change-Id: Ic511bf717c61105003d750235229bfc50ee7fccd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-12Fix service name within socket unitsJosé Bollo1-4/+2
Change-Id: Ic8e562dd31a9bf7e3f1e22f0cda8e381242e3468 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-04-19Improve environment settingJosé Bollo4-4/+9
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-16Set roothttp option for html appSebastien Douheret1-2/+2
roothttp option (see commit dc011f99aed9407c8319b1b70a81f56ad2f02bc8) must be set to a valid directory (for example . that's mean roodir) in order to serve static files of html5 app. Change-Id: I13a17f6699298a80a346dbb6b4c3ecb6ab236bd6 Signed-off-by: Sebastien Douheret <sebastien.douheret@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é Bollo2-2/+171
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>
2016-12-14conf/afm-launch.conf: use --roothttp=htdocs only for HTML5 applicationsStephane Desneux1-3/+3
Change-Id: Ieaa7b9f6f320610a56d020c9ac10fca313d892f9 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-11-16add variable AFM_APP_INSTALL_DIR to environmentJosé Bollo1-0/+1
Change-Id: I1558ed87124750a87a4bf0359d9fb974617a8c42 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-20afm-user-daemon: accept bus address with argumentsJosé Bollo1-2/+1
It might be necessary to pass the address as an argument because library systemd uses secure_getenv to retrieves the default addresses and secure_getenv might return NULL in some cases. Change-Id: Iea14a0494f39875f0a501e53a2711b0df96bab3c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-18Minor improvementsJosé Bollo1-5/+5
- Clean cmake files - Fix orthograph and vocabulary Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-18Fix very bad typoJosé Bollo1-1/+1
The previous commit had CAP_DAC_OVERRIDE instead of CAP_MAC_OVERRIDE. Change-Id: I36988cd7771b6e25dbcf8d858ee3598bd12176b4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-14Refactor of service for systemd 229José Bollo2-2/+1
Since introduction of ambient capabilities, systemd deprecated the use of Capabilities. With systemd 229 activated with krogoth, the use of Capabilities does nothing. This commits avoids to use SecureBits and Capabilities. It now relies on the fact that post installations are setting the capabilities to the file: - setcap cap_mac_override,cap_dac_override=ep afm-system-daemon - setcap cap_mac_override,cap_mac_admin,cap_setgid=ep afm-user-daemon Using p (permitted) instead of i (inherited) that was previously used. Change-Id: I17d51da07adf775d47a7f44551d8b8ebbc6eacb9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-31Use of the new 'roothttp' optionJosé Bollo1-4/+4
The new option 'roothttp' set the root directory that the HTTP part of the binder serves. Its default value is ".". Using this option, the content accessible through HTTP can be a subdirectory of the root and in the same time, the application data are available in the root directory. Change-Id: I30d5f78eb2fe500b840fe0f4869d3e54be69c3cf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-19config: allows "standard" typesblowfish_2.0.2blowfish_2.0.12.0.22.0.1José Bollo1-1/+1
The standard types for HTML (text/html) and QML (text/vnd.qt.qml) should be available. This is needed for 3 reasons: - installing existing demos - installing almost standard HTML widgets - the current default type is text/html Change-Id: I9fa418b1c995663ac4120d3e0bdb42def3ab166e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-15afm-launch.conf: handle URL, native, QML and hybrid typesManuel Bachmann1-1/+18
Provide a generic layout for all the application types and usecases that developers may want to use, and that we are going to provide as templates. Change-Id: I3f8100a16ea64262e0cb7a0e1ee38a24eab776e8 Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
2016-07-10afm-launch.conf: handle services through application/vnd.agl.service mimetypeStephane Desneux2-5/+10
Change-Id: Icb19b5d5036168b3e74f8e684ec4a2909d0feeb7 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-07-09cmake: handle build for SDKStephane Desneux1-9/+11
When building for SDK, only the wgtpkg tools should be built Change-Id: I2f935bae1b26d1d0e8b9513ade85703f8f49cf9d Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-06-24improves naming using 'binding'José Bollo1-1/+1
Change-Id: I535e01ce4a8dd1e16637e61c6624b4f37639b2f7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-15afm-launch: remove unused tag fieldJosé Bollo1-1/+0
Change-Id: I68377aa4255f4aeff4e190eb0f7a31b26c2f5259 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-15conf: setting readyfd for afb-daemonJosé Bollo1-11/+12
Change-Id: I5c1fd99ae8d05bb468748a1d98773b397aeb4b0e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-13conf: adds mode for the binderJosé Bollo1-3/+6
Change-Id: I6cd15a82fe5c9547afa3975300f26c42ba3b2283 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-13afm-launch: begins integration of modesJosé Bollo1-0/+8
Change-Id: I51b3659ca86c04f7276b4beb0e0863fa0e1d700d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-11service :set the capabilitiesJosé Bollo1-0/+3
Change-Id: I9722d6c6876fd872dccd9cb77f85b208c45e4b51 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-09afm-launch: commits conf fileJosé Bollo1-1/+1
Change-Id: Ibf1354b444a945b22f90ca53be5b7c7eab1a688a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-08adds config file for launchersJosé Bollo2-0/+27
Change-Id: Ibbedefcdedbfc7f6fe7c89f8e8f32d022a93ca19 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-05afm-user-daemon: restart automaticallyJosé Bollo1-0/+2
Change-Id: Icb4b6cd1612518dcf52ece7f1c762a18b1b7e2d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-21config: refactoring user serviceJosé Bollo1-5/+4
This improves the user service definition by setting its type to dbus. It removes the group feature. Is it temporary? Don't know it currently. Change-Id: I9eb5751813d5d7e699c5502d6d6f810cea5f8473 Signed-off-by: José Bollo <jose.bollo@iot.bzh>