jobol [Mon, 26 Mar 2018 12:24:33 +0000 (14:24 +0200)]
afm-binding: Improve comment and strings
Change-Id: Ic70e2abf1301d11b0a610cdf5cfd783d21a5674f
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo
Change-Id: I30c22bf90242035285ee12f3bc0db73d7fe31595
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo
Change-Id: If9dcd49edad5a34ea9c7bdfcba7d7bc44bbafbeb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 11:58:13 +0000 (13:58 +0200)]
CMakeLists: Fix library directories
Change-Id: Id9c86eb2385224d657ac69e1b7b5acd07bf6d71d
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 12:46:15 +0000 (14:46 +0200)]
afm-udb: Fix corrupted memory
Change-Id: Ib78b0843f819f232b05ac45124fe888c784f65d4
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 10:09:08 +0000 (12:09 +0200)]
afm-udb: fix refcounting error
Change-Id: Ib5a7c398f9f07a88af05b01e08fdab97e123e374
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Wed, 28 Feb 2018 19:07:23 +0000 (20:07 +0100)]
Refactor user session management
Change-Id: Ib6ba886df110d8a23e3760e1818263ec757b9c7c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 18:32:15 +0000 (19:32 +0100)]
provided.inc: Fix smack label of sockets
Change-Id: I53d3cac7136e4d169acd8e3e3de5ea8439dd0192
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 18:15:28 +0000 (19:15 +0100)]
afm-user-session: Start target from user session
Start the afm-user-session@%i.target from the
user session after pam_sytemd session started.
Change-Id: I5aeb8f01426b3cee2cbfad6ba30ecf37fe21abca
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 14:10:08 +0000 (15:10 +0100)]
Update date of copyright notices
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 14:07:54 +0000 (15:07 +0100)]
Add configuration variables for runtime socket dirs
2 new configuration variables:
- afm_platform_rundir (default /run/platform)
Path to location of platform runtime sockets
- afm_users_rundir (default /run/user)
Path to location of users runtime sockets
Change-Id: I65007fee1ca2ce6f1247a67ba0b121f97c08f209
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 11:02:36 +0000 (12:02 +0100)]
Provision argument for handling language
The requests 'runnables' and 'detail' accept a parameter
'lang' to -in future- get localized data about apps.
Change-Id: I5f1804870c6b3c0d1aedf1a75cde1e2c09a5a605
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 22 Jan 2018 09:07:42 +0000 (10:07 +0100)]
afm-user-session: Create afm-user-session
This new executable is the simplest user session
manager: it waits the signal SIGTERM to stop and
thus release the session.
Change-Id: I557f27386c19ca3e2b28b21dd6a58918e9ca47be
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 19 Jan 2018 09:16:14 +0000 (10:16 +0100)]
Bump version to 5.99-FFRC0
Change-Id: I255b669036672b3728f0e60a62eca90716367178
José Bollo [Mon, 18 Dec 2017 11:26:41 +0000 (12:26 +0100)]
afm-binding: Allow use of appid instead of runid
This facility avoid the double call 'ps', 'kill' and
allow a single call to 'kill' with the application id.
Bug-AGL: SPEC-1189
Change-Id: I71861c06847e855b05dc8294ab1ea6785f555416
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 18 Dec 2017 11:23:35 +0000 (12:23 +0100)]
afm-binding: Common code getting application id
Repeated code is made common to the verbs
detail, start, once.
Change-Id: I9bc15bf22aeb7156d0892e71f56f86f3930866f6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 11:27:37 +0000 (12:27 +0100)]
docs: Add an history
Change-Id: Ib7ea7aa11c63492fe874368e3a0d539ab613a2a0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 10:59:00 +0000 (11:59 +0100)]
wgt-json: Add comments
Change-Id: If75c3089c9506219601d35b49c132a9b670c026e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 10:58:25 +0000 (11:58 +0100)]
Update of src/README.md
Change-Id: Id806a36fbc58df8dccb89f02fa86575c2aafd63e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 09:48:57 +0000 (10:48 +0100)]
gendocs.sh: Fix tabulations
Change-Id: If9b06695c874f861859793b621264121d2152f11
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 11 Dec 2017 17:18:58 +0000 (18:18 +0100)]
mkdocs: Restore mkdocs feature
Change-Id: Iac70ac21a0d88e973aa5859a692515d4e683b2c9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 11 Dec 2017 12:55:10 +0000 (13:55 +0100)]
unit.conf: Fix Smack permission on api ws
The Smack permission to write on the websocket of the API
must be set to something that allows the communication!
Here the chosen value is *
Change-Id: Ia276219b232e33bd35353d8feb333513b340e75c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 12:37:30 +0000 (13:37 +0100)]
docs: identify revision file
Change-Id: Iae13361c16b056f8619a9a75a08ae63d66f85daf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 12:05:48 +0000 (13:05 +0100)]
Clean unused afm-main-binding... files
Change-Id: Ifc8da473e3454f10bfd1aad2500db579a732b43e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 09:44:43 +0000 (10:44 +0100)]
Remove deprecated file afm.h
Change-Id: Ie524342b69d386c2d6f667dde7cde0d68a0d29c8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Thu, 7 Dec 2017 15:49:03 +0000 (16:49 +0100)]
unit.cont: Refactor PATH and LD_LIBRARY_PATH
Change-Id: Ic6da02c0039421fd5656238f5fa812574af1c268
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Fri, 24 Nov 2017 15:34:42 +0000 (16:34 +0100)]
simplify afm-user-session process
Change-Id: If2739fd2c5a19d7cd31e117e1e79c0b51451552b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 24 Nov 2017 08:33:43 +0000 (09:33 +0100)]
Improve afm-user-session setup
Change-Id: I4dfb0939afc871e93874cf021548db2e85d3656c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 21:52:46 +0000 (22:52 +0100)]
Avoid implicit Before socket.target
Change-Id: I493c49a80ebb1fa85f586d0b0704b5682f0c3613
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 21:30:53 +0000 (22:30 +0100)]
Config for afm-user-session
Change-Id: I6567b58fa0a6dd17deba4c7cccbf3b9f441730eb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 16:21:00 +0000 (17:21 +0100)]
afm-user-startup.service: Fix type
Change-Id: I8ecddbc5be346441f002ef8c50dd733fec0e6ef2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 16:19:36 +0000 (17:19 +0100)]
unit.conf: Fix target name
Change-Id: I144bcd47b65b86dd07ca5de71514a0032166b3a6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 15:14:56 +0000 (16:14 +0100)]
Add a PAM config file
Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 14:44:24 +0000 (15:44 +0100)]
Rework on systemd start of user sessions
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 13:38:54 +0000 (14:38 +0100)]
afm-binding: Fix bug in evaluation of runid
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 21 Nov 2017 13:58:00 +0000 (14:58 +0100)]
unit.conf: Bound start to agl-user-session
Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 21 Nov 2017 10:39:44 +0000 (11:39 +0100)]
unit.conf: Remove unset of capabilities
Remove the unsetting of capabilities because it
currently breaks the image. To be reworked.
Change-Id: I69a1d9c23f463a36edebb7993aa94fae14fb60e8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 20 Nov 2017 15:08:19 +0000 (16:08 +0100)]
unit.conf: binder's service of type notify
Change-Id: Ibb80974c65f48d7473b8aa56604154bf70a49e14
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 20 Nov 2017 15:07:09 +0000 (16:07 +0100)]
unit.conf: Fix remaining %t
Change-Id: If9c1c0d8b805e7de6490c75f0465d3455e84eb36
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 09:08:25 +0000 (10:08 +0100)]
afm-util: don't reload if afm-install
Change-Id: I5c73d80ee2dd02a8d7260e8dcd5f52e8ef84b34b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 08:39:36 +0000 (09:39 +0100)]
genconf: set filetype and syntax
Change-Id: Ibcff5a513c4559c84ddfca1ef9449b1eff544006
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 07:53:57 +0000 (08:53 +0100)]
afm-unit.conf: Fix missing @ in service name
Regression introduced by commit:
c7db705 Generate afm-unit.conf using m4
Change-Id: Ibeeaf14b697e79cb2a95154b50b2ac775f93d529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 16:38:26 +0000 (17:38 +0100)]
afm-util/install: use of web socket connection
Change-Id: I8bda689a377d676c4b190e1b54cdc115006c9829
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 11:51:41 +0000 (12:51 +0100)]
wgtpkg-unit: remove metadata.app-data-dir variable
Change-Id: I51cbbad8ecdc371f457a008808c8c0f63501ac2b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 10:59:06 +0000 (11:59 +0100)]
afm-udb: add comments
Change-Id: I03d560a8fca3a064fa526afb55c951062fa7a78e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 15 Nov 2017 15:20:28 +0000 (16:20 +0100)]
Generate afm-unit.conf using m4
The use of m4 to generate the afm-unit.conf and
afm-unit-debug.conf files has benefits:
- the sync between debug versus not debug is mechanical
- it allows easier maintainance by improving readability
and writability (ex: macros TARGET or UNIT_NAME_BASE)
Change-Id: Ic0427bedf4f8a5b174318562336603077f174fa5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 16 Oct 2017 16:50:31 +0000 (18:50 +0200)]
afm-unit.conf: remove invocation of PAM
Change-Id: I2b446907b0c68b3bdb1c59227427e237f429ed8e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 13 Oct 2017 14:06:42 +0000 (16:06 +0200)]
afm-unit.conf: Add XDG dirs definitions
Change-Id: I40d73de059e955256d90ca7831870815c7d90481
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 13 Oct 2017 14:06:18 +0000 (16:06 +0200)]
afm-unit.conf: Add slice indication
Change-Id: I50c2166ffab106988fa4ac1e68c14ea56c5b3145
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 13 Oct 2017 13:30:38 +0000 (15:30 +0200)]
afm-binding: Restore previous return for 'start'
Change-Id: I28cd41391d207b59d74d2ff661e5981b9947c716
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:47:07 +0000 (22:47 +0200)]
Don't rely on features available for user units
Change-Id: I117b8de2eec6cba9f475e18b794f90347bc184f8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:45:45 +0000 (22:45 +0200)]
Avoid polkit and bug
Accessing systemd/system with DBUS from
a user not root make systemd use polkit.
It doesn't work for us because:
- at the end systemd crashes (sigsegv)
- we don't want polkit here
Change-Id: I206edd108b8b659c8c6a3a68f61500cb114995d4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:43:05 +0000 (22:43 +0200)]
remove secure-bit directives
Doesn't work after dropping capabilities!
Change-Id: I748a8de9bb04006c14cba09cc6c4469da06c1b5d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:42:00 +0000 (22:42 +0200)]
bug fixes and improvements
Change-Id: I2fc3de0a84e471e8e87f43170c20f8d6d0d05fdc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:40:35 +0000 (22:40 +0200)]
provide access to systemd system
Change-Id: I1e3d2dc780a1449f2bfc894baa1f26a94be61cd8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 20:39:51 +0000 (22:39 +0200)]
Restore compilation of native-sdk
Change-Id: I3855854407ad47c2b9a2288b8425513de5ae94d3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 12 Oct 2017 08:58:40 +0000 (10:58 +0200)]
Remove afm-system-daemon
Change-Id: I1e6c0488b7183724a65fcc06fd3cf6909e0efd53
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 11 Oct 2017 20:43:41 +0000 (22:43 +0200)]
urun/udb: integration of user UID
Managing user applications at the system
levels requires to manage the user application
in a single process.
This process must manage the user identity
(UID).
Change-Id: I1ce8c9ca66ed0f916ecb2931ae014b08b113fa23
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 11 Oct 2017 15:33:27 +0000 (17:33 +0200)]
afm-user-daemon: rewriten to use direct API
The coming version of afm-system-daemon will no
more use DBUS but will provide a websocket API.
Change-Id: I5ff0488ff5ec5b2b9a193d869efe8a9c5896516f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 7 Aug 2017 15:20:37 +0000 (17:20 +0200)]
afm-binding: provide afm as a unique binding
This is the first stone (not fully tested) to
implment the afm-main as a binding. At the end,
this component will replace afm-user-daemon and
afm-system-daemon.
Change-Id: I6eafa7d26800f45ae58dd51aa9ff8008cdb3ff59
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 11 Oct 2017 13:28:43 +0000 (15:28 +0200)]
utils-systemd: Offer way to set systemd's buses
Change-Id: I8035c10e8f769b7912046b432d43f97297c039b2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 10 Oct 2017 15:09:14 +0000 (17:09 +0200)]
afm-udb: keep looking at valid units
Returning an error when a unit is not valid has
drawbacks. With this commit, bogus units are
ignored. The benefit is to be able of using valid
units instead of using none because in the previous
case, all the DB was cancelled.
Change-Id: Id1e4d6d5efd4af7e118b9d549238bd5e3d6c52d7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 10 Oct 2017 09:05:36 +0000 (11:05 +0200)]
afm-unit.conf: Removes capabilities of applications
Change-Id: I081e8a8f9ea344d47ae007a4d6c9e72663f82fcf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 2 May 2017 16:13:23 +0000 (18:13 +0200)]
Start user units at the system level
When service name end with @ it means that the user
UID must be provided.
Change-Id: I6707df0151b7cab985cfc53a81fccf6a7150c9a3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 2 May 2017 12:27:29 +0000 (14:27 +0200)]
afm-unit.conf: Rename generated systemd units
Uses a more uniform naming for units and allows to use
templating for some other purpose.
Change-Id: Ia99f84a8f4436fcce6cecf3b3720870d27e9e303
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 10 Oct 2017 08:52:12 +0000 (10:52 +0200)]
afm-udb: remove comments and join lines of unit files
Change-Id: I9d901e074925a666190d5e3007a66aea81ef6253
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Romain Forlot [Tue, 10 Oct 2017 14:36:35 +0000 (16:36 +0200)]
Added information to include external library
Describe default directories used by application
framework inside the apps.
Bug-AGL: SPEC-883
Change-Id: Iea0280197db6091b4963134f8b20b5dc10b9767b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
José Bollo [Tue, 5 Sep 2017 15:45:31 +0000 (17:45 +0200)]
wgtpkg-unit: improve naming (minor)
Change-Id: I5dae72c8dd925646b18c30ab4ef60382e43c744b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Sep 2017 15:16:54 +0000 (17:16 +0200)]
Remove legacy mode without systemd
Change-Id: Id26322a1a46baa8b53b6d3c214477ae50a7c99f6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 2 May 2017 14:08:35 +0000 (16:08 +0200)]
Extend database values with arrays
Change-Id: I9ab94413abce0d13102711091ec48a5894ccadd9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 2 May 2017 08:34:52 +0000 (10:34 +0200)]
Include json description for callbacks
This tiny modification is mainly for debugging.
Change-Id: Ieda90da49d365a7b092a02833227c869bd0397a4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 19 Sep 2017 13:24:15 +0000 (15:24 +0200)]
Bump version to 4.99-EERC1
Change-Id: Icb0f8870fa646ed0e2e969eaa1a06505f8dec467
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Sebastien Douheret [Mon, 18 Sep 2017 14:27:09 +0000 (16:27 +0200)]
Bump doc to 4.99-EERC1
Change-Id: I9181f557addc212224cc1bfe2da9a61b2c0cfb01
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
José Bollo [Tue, 5 Sep 2017 13:59:55 +0000 (15:59 +0200)]
Update version of tools
Change-Id: I82bb06d2be92beb377d6c3cafffae49c65e9f20b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Sep 2017 13:11:26 +0000 (15:11 +0200)]
Set the url of the project
Change-Id: Ib32eac8f5ebc9e6dea43fdba78b6130b59b319e4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Sep 2017 12:35:13 +0000 (14:35 +0200)]
Fix warnings 'implicit-fallthrough' of gcc 7
Change-Id: I32b42fd8db481fcbdce4b934fc990c118293850d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Sep 2017 12:20:47 +0000 (14:20 +0200)]
Upgrade to afb-daemon (binder) version 4.0 at least
Change-Id: I6d2a6e7e2781f0b2b3471f698912990961d84865
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Sep 2017 12:00:32 +0000 (14:00 +0200)]
Update CMake required version
Change-Id: I8d45e9d0430600444a25d923412dd8e385b91470
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 1 Sep 2017 08:09:23 +0000 (10:09 +0200)]
afm-unit-debug.conf: Move monitoring option
Put it in the same place that other unconditionnal
options
Change-Id: I75fc5503db6fd9776299564b4a559a5bbf889952
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 1 Sep 2017 07:08:16 +0000 (09:08 +0200)]
afm-unit-debug.conf: Increase the verbosity in debug
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>
José Bollo [Thu, 31 Aug 2017 15:09:08 +0000 (17:09 +0200)]
afm-unit.conf: improve setting of names
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>
José Bollo [Tue, 29 Aug 2017 09:40:41 +0000 (11:40 +0200)]
afm-unit.conf: use option --name for setting binder name
Also enforce output to journal
Change-Id: I85957cfb8cc7e2264c9146ca18c352a0af347934
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 29 Aug 2017 06:54:38 +0000 (08:54 +0200)]
afm-unit-debug.conf: add --monitoring option
Change-Id: I3174738bf4c164513bb6a0399584784548b22c2c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 29 Aug 2017 06:57:12 +0000 (08:57 +0200)]
afm-unit-debug.conf: provides a default token
The default token is set to HELLO
Change-Id: I275c8d91633f4b6aa596c6195b90f1ad7c1b0cde
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 29 Aug 2017 06:49:57 +0000 (08:49 +0200)]
afn-unit.conf: Fix bug for option --no-httpd
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>
José Bollo [Tue, 8 Aug 2017 13:35:32 +0000 (15:35 +0200)]
afm-unit.conf: refactor LD_LIBRARY_PATH value
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>
José Bollo [Tue, 8 Aug 2017 07:33:01 +0000 (09:33 +0200)]
wgtpkg-install: search in subdir "htdocs" also
For widgets that are fully HTML, the search of the content
was not checking the subdirectory "htdocs" that is enforced
elsewhere.
This commits add the search of the content in the subdirectory
"htdocs". This is a temporarily fix. A better complete solution
has to be delivered later.
Bug-AGL: SPEC-808
Change-Id: I8bef7c4a31ff919827ceca05e203c2b277cf7657
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 7 Aug 2017 16:43:28 +0000 (18:43 +0200)]
Set explicit path for services and units
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>
José Bollo [Mon, 7 Aug 2017 16:07:26 +0000 (18:07 +0200)]
Handle file-properties for setting eXecutable flag
This commits introduce the feature "urn:AGL:widget:file-properties".
This feature actually only allows to set execution flag to files
of the widget.
Example:
<feature name="urn:AGL:widget:file-properties">
<param name="flite" value="executable" />
<param name="jtalk" value="executable" />
</feature>
Bug-AGL: SPEC-384
Change-Id: If13ca3b1015576317fd52cb9540b77d0e2675f67
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Ronan Le Martret [Thu, 3 Aug 2017 12:02:28 +0000 (14:02 +0200)]
Fix socket dependency for afb service
Change-Id: Icb65d7165e1f1c0811f170effe148606bc367872
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Tadao Tanikawa [Wed, 2 Aug 2017 09:21:20 +0000 (18:21 +0900)]
Executing /bin/bash explicitly
Although 'afm-util' uses PIPESTATUS[] to catch error from
dbus-send, it doesn't require executing /bin/bash.
Change-Id: I45b8a19b3dcdf789103472e16de64e0d50351548
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Ronan Le Martret [Fri, 28 Jul 2017 10:29:28 +0000 (12:29 +0200)]
clean markdown documentation
Change-Id: I1b0a1628b42097c47a844aa0c8030d4534428421
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Sebastien Douheret [Thu, 13 Jul 2017 20:02:20 +0000 (22:02 +0200)]
Add service debugging support (afm-debug).
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>
José Bollo [Tue, 11 Jul 2017 15:31:42 +0000 (17:31 +0200)]
Don't list terminated processes
Listing processes that are terminated
might be disturbing. So it is now removed.
In some future, it should be good to return on
option even terminated processes with an indication
of their termination status.
Bug-AGL: SPEC-728
Change-Id: I6d5c892bc5e618830cb41de7d664c2443525af96
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 11 Jul 2017 15:06:06 +0000 (17:06 +0200)]
Allow to install widget with no icon
This patch allows a widget to not specify any icon
but it still enforce when an icon is specified to
specify only one icon and to provide the attribute
"src".
Bug-AGL: SPEC-702
Change-Id: I916b7581ac1f486a4a1d5774d0885c3711029f69
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 7 Jul 2017 11:50:23 +0000 (13:50 +0200)]
unit.conf: Allow service to run by default
Change-Id: Ifc2d1795041d0254af7db518f64c988bb747200c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 6 Jul 2017 15:22:49 +0000 (17:22 +0200)]
afm-util: make output more readable
Change-Id: Idfa35a60f3ee6268d2f08304e5ad2248777d2002
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 3 Jul 2017 11:09:11 +0000 (13:09 +0200)]
install: improve port detection
Check any existing X-AFM-http-port or
X-AFM--http-port.
Change-Id: I1111095664535c849c76870f2e5104fb07099ab4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 28 Jun 2017 16:05:18 +0000 (18:05 +0200)]
Fix bad error reporting
The use of %m was buggy due to the implementation
of 'vverbose': it always returned ENOTTY
Inappropriate ioctl for device
Change-Id: I0b7dd4c2f4ce5a45611042a8b9ba3e6db0e60803
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Jun 2017 13:54:07 +0000 (15:54 +0200)]
Moves handling of reloads
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>