summaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-unit.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-08Update copyrightJosé Bollo1-1/+1
Change-Id: I1d68e07563d9f0f139d1bc8128e09a5da0a648af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-03Enforce numeric application IDsJosé Bollo1-10/+16
This change allows to index applications numerically. This can be used for various purposes. One of it is to compute the HTTP port. Bug-AGL: SPEC-2968 Change-Id: I74531781f3a39d5d4b09eeb907f57f36822e38f0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-07Update date in copyrightssandbox/scottrif29/scottdocsJosé Bollo1-1/+1
Change-Id: Ie2ff321f78c59913373e2ffb2820297fd423d6f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-06wgtpkg-unit: Fix Segmentation faultJose Bollo1-4/+8
This fixes a segmentation fault raised when uninstalling a widget. This regression was introduced by the commit f8b0495. Bug-AGL: SPEC-2144 Change-Id: Ie10eb97a4d2f2663d73f83b210ef2b17717ed2e6 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-12-18afm-unit: Fix http port multi allocationJosé Bollo1-4/+18
When serveral targets were set in the widget file, the framework allocated the same HTTP port to each. This lead to impossibility to run all targets or to a systemd conflict. This should fix the issue by allocating an HTTP port for each target installed by the widget. To achieves that goal, the afm-unit.conf tag for the port is moved from '#metadata.http-port' to '#metatarget.http-port'. Bug-AGL: SPEC-2068 Change-Id: I5376d6f052e0ffc5c77cc80041528637777aed1e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28Update date of copyright noticesJosé Bollo1-1/+1
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24wgtpkg-unit: remove metadata.app-data-dir variableJosé Bollo1-1/+0
Change-Id: I51cbbad8ecdc371f457a008808c8c0f63501ac2b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Don't rely on features available for user unitsJosé Bollo1-1/+1
Change-Id: I117b8de2eec6cba9f475e18b794f90347bc184f8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19wgtpkg-unit: improve naming (minor)José Bollo1-5/+5
Change-Id: I5dae72c8dd925646b18c30ab4ef60382e43c744b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Include json description for callbacksJosé Bollo1-2/+3
This tiny modification is mainly for debugging. Change-Id: Ieda90da49d365a7b092a02833227c869bd0397a4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-27Moves handling of reloadsJosé Bollo1-36/+0
The new version ensures that the daemons are responsibles of reloading the units. This is no more done by default. Change-Id: I9ff33a628dfc05e429dbc7bf127d641691f2a3b9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix daemon reload (to be improved)José Bollo1-1/+1
Change-Id: Ica099aa439e6c022de4982a58b0990065d932b0b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Rework on parsing units confdab_3.99.1dab/3.99.13.99.1José Bollo1-37/+64
Change-Id: Ia95dae65e74a42f9f49154c9421391421f9ca1c0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Use structures for generating unitsJosé Bollo1-77/+87
Change-Id: I7258a494d62ef22219c973048d052965cb5fea28 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-unit: fix last empty continuationJosé Bollo1-3/+3
Change-Id: Id0a9581032add095756141a4373b34cee3cd6f80 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17Emits reload to systemd when neededJosé Bollo1-11/+50
The current implementation enforce the reload when a 'wants' target is created or deleted. This should work well for system units. However, for system units, this behaviour isn't enought when more that a user is active because only the user that installs the application will be updated. For this reason, a paralelle mechanism has to be defined. Also note that systemd is henceforth required for tools because wgtpkg-installer needs it now. Change-Id: I4fc03a44dbc58c2374ea21dbf6b436f646d04e00 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17utils-systemd: introduction of systemd interfaceJosé Bollo1-36/+16
Isolate the interface to systemd. Change-Id: I03ea654da9fab2df0e6eec980b0e5623487d1b73 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-unit: add management of wanted-by in unit descriptionsJosé Bollo1-31/+110
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-17wgtpkg-unit: install/uninstall functions addedJosé Bollo1-1/+125
Change-Id: Ib147de12d0b2c8e783ddb6aae2f9978f288d98fd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02improves matching of patterns for unit descriptionJosé Bollo1-63/+156
Change-Id: I2c3f9f0b45b79d5baa9ad5c19876f1412456c19d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Prepare the Integration with systemdJosé Bollo1-0/+254
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>