aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-connectivity
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-07-10 23:30:26 -0700
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-07-11 19:30:52 +0000
commit7fb4adbb5c32f609619cee5d7954307e7f674b5f (patch)
tree8d82b5884f018378a02ea226c5ea70705dd60b28 /meta-agl-profile-core/recipes-connectivity
parentd207ecb09ee168c7ef3081058af2efcf8588ad15 (diff)
neard: systemd: changes to allow enablement of neard.service on boot
Bug-AGL: SPEC-1554 Change-Id: Iec2bb77e3f4a5a729298b57a50fb40fb49dba400 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-connectivity')
-rw-r--r--meta-agl-profile-core/recipes-connectivity/neard/files/0001-systemd-neard-add-multi-user.target-to-neard.service.patch25
-rw-r--r--meta-agl-profile-core/recipes-connectivity/neard/neard_0.16.bbappend4
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-connectivity/neard/files/0001-systemd-neard-add-multi-user.target-to-neard.service.patch b/meta-agl-profile-core/recipes-connectivity/neard/files/0001-systemd-neard-add-multi-user.target-to-neard.service.patch
new file mode 100644
index 000000000..c32951693
--- /dev/null
+++ b/meta-agl-profile-core/recipes-connectivity/neard/files/0001-systemd-neard-add-multi-user.target-to-neard.service.patch
@@ -0,0 +1,25 @@
+From d8c03a31e2734e59af43dd50cbd7f5a94d798ab1 Mon Sep 17 00:00:00 2001
+From: Matt Ranostay <matt.ranostay@konsulko.com>
+Date: Tue, 10 Jul 2018 21:18:26 -0700
+Subject: [PATCH] systemd: neard: add multi-user.target to neard.service
+
+Allowing a service to be system level requires a WantedBy= target
+
+Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
+---
+ src/neard.service.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/neard.service.in b/src/neard.service.in
+index dfa238c..540da7e 100644
+--- a/src/neard.service.in
++++ b/src/neard.service.in
+@@ -9,4 +9,5 @@ ExecStart=@pkglibexecdir@/neard -n
+ LimitNPROC=1
+
+ [Install]
++WantedBy=multi-user.target
+ Alias=dbus-org.neard.service
+--
+2.17.1
+
diff --git a/meta-agl-profile-core/recipes-connectivity/neard/neard_0.16.bbappend b/meta-agl-profile-core/recipes-connectivity/neard/neard_0.16.bbappend
new file mode 100644
index 000000000..4bca42d94
--- /dev/null
+++ b/meta-agl-profile-core/recipes-connectivity/neard/neard_0.16.bbappend
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append = "file://0001-systemd-neard-add-multi-user.target-to-neard.service.patch"
+SYSTEMD_SERVICE_${PN} = "neard.service"