af-main: Fix service and their socket activation 87/9787/2
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 23 Jun 2017 12:12:40 +0000 (14:12 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 23 Jun 2017 16:39:21 +0000 (16:39 +0000)
The method to create shared services using websockets
was buggy. This patch correct it. It creates the directories
'sockets.target.wants' were the socket activations units
will be linked. It also makes correct reload and improves
the used paths.

Also fixes a masty infinite loop (spec-663).

AGL-Bug: SPEC-670
AGL-Bug: SPEC-663

Change-Id: I39d93f669498354a1c2f96bd735c0318a2f0e93a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9787
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Romain Forlot <romain.forlot@iot.bzh>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-app-framework/recipes-core/af-main/af-main_1.0.bb
meta-app-framework/recipes-core/af-main/af-main_1.0.inc

index 5cc5740..b71a4cb 100644 (file)
@@ -64,6 +64,8 @@ do_install_append_class-target() {
     install -d -m 0775 ${D}${systemd_units_root}/user
     install -d -m 0775 ${D}${systemd_units_root}/system/default.target.wants
     install -d -m 0775 ${D}${systemd_units_root}/user/default.target.wants
+    install -d -m 0775 ${D}${systemd_units_root}/system/sockets.target.wants
+    install -d -m 0775 ${D}${systemd_units_root}/user/sockets.target.wants
     install -d ${D}${afm_datadir}/applications
     install -d ${D}${afm_datadir}/icons
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
index 3317f43..5041c8d 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI = "${SRC_URI_git} \
            ${SRC_URI_files} \
           "
 
-SRCREV = "d266bd8816f5a2647e011f5b23698bf2d788b91b"
+SRCREV = "474616e64fe081a59ebdb7ee6d650778f318212a"
 
 S = "${WORKDIR}/git"