summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-06-23Fix socket activationJosé Bollo1-3/+6
Change-Id: Ic511bf717c61105003d750235229bfc50ee7fccd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix infinite loop in wgt_info_paramJosé Bollo1-0/+1
Change-Id: I8a623a40e48108c8999083667dae1230da2d206f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-20docs: fix book.json (headers/footers)Stephane Desneux1-2/+2
Change-Id: I7d997b9a8c17caa83e0e9c4f4611e0aac04be6b4 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-06-20Merge "Auto generate cover from book.json fields."Stéphane Desneux3-2/+12
2017-06-20docs: add document revisionStephane Desneux3-244/+257
Change-Id: Ib98fae58d8a95dceea42347a5e46d6d39d565852 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-06-20Auto generate cover from book.json fields.Sebastien Douheret3-2/+12
Change-Id: I8203040b759289b08d5311a74e6df557fe8250bd Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19docs: remove incomplete docs from bookStephane Desneux1-3/+0
Change-Id: I1ed6c95a906c086a010b302eca6a48c2a3ac3eef Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-06-19Fix pdf paging and make-units rendering (svg to png).Sebastien Douheret5-1653/+438
Change-Id: I60b5ab02602b993d8d92504b25f0a35d340d5444 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19Fix spelling and images size.Sebastien Douheret7-85/+79
Change-Id: I01c6342fa9f6b16753ed5f48645538e48af09a5a Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19Re-order doc chaptersSebastien Douheret10-23/+23
Change-Id: I44cf2054fa06816480e26fc19b45c6f8a464a708 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19Remove proposal statement.Sebastien Douheret1-2/+2
Change-Id: I5d63279149c46e095afeec97bfad3c61e40fedee Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19Add gitbook documentation (support PDF generation).Sebastien Douheret20-11791/+2591
To generate PDF doc: ./gendocs.sh pdf To generate HTML doc (local webserver): ./gendocs.sh serve Change-Id: Ib9b195814f4596a5cf5233d6a331d206e76c9bae Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-06-19docs: minor enhancements, typo fixesStephane Desneux3-5/+5
Change-Id: Ic2cb29cb96e6542405736628f2d0cce995cb21ce Signed-off-by: Stephane Desneux <stephane.desneux@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-06-12fix binding version to 1José Bollo1-0/+1
Change-Id: I98e6de97e170b8cbb51b48e0e3cf7e52e6def7f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-12Fix lack of error message on mustach issueJosé Bollo1-1/+24
Change-Id: I16139c133d7031e38f4c63ff6369f1d7478fc86f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-31Check content existing and fix executableJosé Bollo1-14/+72
Change-Id: I4060334cb9c677df1ce86c99a1cb37abc007f3c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-30Fix lack of message when setting exec bitJosé Bollo1-3/+7
Nothing was telling that the content couldn't be set as executable. Note that nothing is made to check that a content (executable or not) exist. Also note that installing several executables for one widget isn't possible now. Change-Id: I10373fa27cd8d1d90c292e3529d8a5eec62bb8f0 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-02Implement deinstallation of unitsJosé Bollo1-1/+19
Change-Id: I7d9812211bb75f34d55b4035d5b4a3b7ea66f461 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Use structures for generating unitsJosé Bollo4-92/+119
Change-Id: I7258a494d62ef22219c973048d052965cb5fea28 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-04-03Handle systemd's "inactive" state as transientJosé Bollo1-1/+1
Inactive is returned sometimes but it means that the service is not started yet not that it failed to start. AGL-Issue: SPEC-520 Change-Id: I3b39b983b45a0f6ee449958100595c5c486cbfdd 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é Bollo3-97/+63
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é Bollo12-433/+12367
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-17wgtpkg-install: choose the portJosé Bollo2-15/+83
The installer now chooses a port for an installed application. This choose is made by consulting the previously installed applications and by getting the lowest port available in the range 1024..32767. Change-Id: Iab4238b4d52447a2d261d87d45bbb02f0b7a35e5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17utils-systemd: implement start/stop of unitsx-first-with-systemdJosé Bollo6-32/+788
This implementation is very basic and must be improved. Change-Id: Id1540e646c83285c61849092bbd8fb645c0954ed Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17Allows to compile without libsystemdJosé Bollo2-36/+56
This fixes a problem with bitbake when building native packages. Change-Id: I28586720010237db578ec55cb5254212c88240e7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17Switch to use systemd databaseJosé Bollo5-14/+570
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-17utils-systemd: provide enumeration of unitsJosé Bollo2-18/+119
This enumeration is based on the filesystem, units are listed from the configured directory. This is necessarily because not all units can be loaded by systemd but all can be started. Change-Id: Ic4d1331c8c54f5bbaa747ff8084da2b0c5a65c55 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17Use the same dbus connectionJosé Bollo2-3/+3
Opening one connection per part of the program doesn't make sense and waste resources. Using a common one is much better. Change-Id: I74dc3cd7ae41d7bfa2f03f4a252495e8f5f81578 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é Bollo4-66/+133
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é Bollo4-36/+118
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é Bollo3-34/+119
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-install: creates the systemd unitsJosé Bollo2-21/+35
Change-Id: Ia3cdcb76a9f7b3bda77a9d9fcb38dfd85eb85804 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17wgtpkg-unit: install/uninstall functions addedJosé Bollo2-1/+129
Change-Id: Ib147de12d0b2c8e783ddb6aae2f9978f288d98fd 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-17Fix issue in labelling filesx-last-without-systemdJosé Bollo2-2/+4
The current version of security manager put this tags - SECURITY_MANAGER_PATH_PRIVATE - SECURITY_MANAGER_PATH_RW User::App::XXXX - SECURITY_MANAGER_PATH_PUBLIC - SECURITY_MANAGER_PATH_RO User::Home - SECURITY_MANAGER_PATH_PUBLIC_RO _ (underscore or floor) Putting floor is bad because it produces files and directories that can't be removed. Using SECURITY_MANAGER_PATH_RO instead of SECURITY_MANAGER_PATH_PUBLIC_RO sets the label "User::Home". It is valid because this label is already read only for applications. But it is writable by the "System" labelled services at the opposite of "_". Change-Id: I685fe366fddb95858c66b827e28acf6d005bcfc0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-16afm-run: improve error diagnosticJosé Bollo1-0/+1
Change-Id: Ic23bcc031fdc72e15675bffcbac619ef41a2f241 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14utils-json: fix a warning when compilingJosé Bollo1-1/+1
Change-Id: I3e354cb9e940798a995e79fe67d05607130c9714 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-14Splits the widget validation functionJosé Bollo1-2/+12
Change-Id: I543995c8bb64a859a7c0eb6cc09217d2f71ccc38 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14utils-file: fix bug in writingJosé Bollo1-1/+0
Change-Id: I7da9ee72992cba4c49c0d1286a38674d3f7ed4bc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14switch to cmake 3.4.3 at leastJosé Bollo1-6/+2
Change-Id: Ib63bd000abaabd4966519b75356668d31aed58f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14improve names in CMakeListsJosé Bollo1-11/+11
Change-Id: If86544db50c5813868550338a68c0e11ea469a35 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-03afm-util: adds run-remote and start-remote commandsJosé Bollo1-0/+5
Change-Id: I2c94d072886f4dd004ea13f7bf0c1ce61b757ca8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-03Try to improves the error message after execJosé Bollo1-0/+1
Change-Id: Ibaed600a85ce1b7c3e445ceb39c780e99ca61062 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>