aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2014-10-15 17:51:50 +0300
committerHolger Behrens <holger.behrens@windriver.com>2014-10-17 17:29:15 +0200
commitea108d64d277cebbea81e9d8fc2626398fed5957 (patch)
treeedd4d1960a43445eadb892d42ab7354d8b8664fc
parente5ac7ca4ae3d5c2dce0fa9bfd28117709726fe7c (diff)
downloadmeta-ivi-ea108d64d277cebbea81e9d8fc2626398fed5957.tar.gz
meta-ivi-ea108d64d277cebbea81e9d8fc2626398fed5957.tar.bz2
meta-ivi-ea108d64d277cebbea81e9d8fc2626398fed5957.zip
browser-poc: Added user systemd services.
We added 2 services: one for the browser engine and the other for the demoui app. NOTE: neither of these 2 services autostarts Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com> Signed-off-by: Holger Behrens <holger.behrens@windriver.com>
-rw-r--r--meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/browser.service6
-rw-r--r--meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/demoui.service7
-rw-r--r--meta-ivi-demo/recipes-extended/browser-poc/browser-poc_git.bb4
3 files changed, 17 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/browser.service b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/browser.service
new file mode 100644
index 0000000..480b55e
--- /dev/null
+++ b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/browser.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Genivi Browser PoC service
+Requires=dbus.service
+
+[Service]
+ExecStart=/opt/browser/bin/browser
diff --git a/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/demoui.service b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/demoui.service
new file mode 100644
index 0000000..e18ca5a
--- /dev/null
+++ b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc-git/demoui.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Genivi Browser PoC demoui
+Requires=browser.service
+
+[Service]
+Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ExecStart=/opt/demoui/bin/demoui
diff --git a/meta-ivi-demo/recipes-extended/browser-poc/browser-poc_git.bb b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc_git.bb
index fd8a762..5074d36 100644
--- a/meta-ivi-demo/recipes-extended/browser-poc/browser-poc_git.bb
+++ b/meta-ivi-demo/recipes-extended/browser-poc/browser-poc_git.bb
@@ -11,6 +11,8 @@ DEPENDS = "qtbase qtwebkit"
SRC_URI = "git://git.projects.genivi.org/browser-poc.git \
file://browser_poc_smaller_bookmarks_qml.patch \
+ file://browser.service \
+ file://demoui.service \
file://COPYING \
"
@@ -25,6 +27,8 @@ do_install_append() {
install ${B}/testapp/testapp ${D}/opt/testapp/bin/
cp -r ${S}/testapp/images ${D}/opt/testapp
cp -r ${S}/testapp/qml ${D}/opt/testapp
+ mkdir -p ${D}/etc/systemd/user
+ cp ${WORKDIR}/browser.service ${WORKDIR}/demoui.service ${D}/etc/systemd/user
}
FILES_${PN} += "/opt/browser/bin/* \