aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2014-10-15 17:59:29 +0300
committerHolger Behrens <holger.behrens@windriver.com>2014-10-17 17:29:15 +0200
commit9129bf5654925ebbbba31e406f56a76bcf0d5222 (patch)
tree10456206f1b3f04e635a70226982722027c5a1a2
parentcdad9a8862024022f6cee7785ee46f08fd20169c (diff)
downloadmeta-ivi-9129bf5654925ebbbba31e406f56a76bcf0d5222.tar.gz
meta-ivi-9129bf5654925ebbbba31e406f56a76bcf0d5222.tar.bz2
meta-ivi-9129bf5654925ebbbba31e406f56a76bcf0d5222.zip
AudioManager: Add systemd user service
This systemd user service is tailored for the AM PoC 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-multimedia/audiomanager/audiomanager/AudioManager_user.service11
-rw-r--r--meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager_6.1.bbappend8
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager/AudioManager_user.service b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager/AudioManager_user.service
new file mode 100644
index 0000000..ddc294d
--- /dev/null
+++ b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager/AudioManager_user.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=AudioManager service
+Requires=dbus.service
+After=dbus.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/AudioManager -c/usr/lib/audioManager/control/libPluginControlInterface.so -l/usr/lib/audioManager/command/ -r/usr/lib/audioManager/routing/
+Restart=always
+RestartSec=5
+TimeoutSec=5
diff --git a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager_6.1.bbappend b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager_6.1.bbappend
index 2277041..a291d25 100644
--- a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager_6.1.bbappend
+++ b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager_6.1.bbappend
@@ -3,9 +3,17 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
SRC_URI_append = " file://0001-Porting-Pulse-Routing-Interface-from-AM-v1.x-to-AM-v.patch \
file://0001-Porting-Pulse-Control-Interface-from-AM-v1.x-to-AM-v.patch \
file://sqlite_database_handler_change_mainVolume_to_volume.patch \
+ file://AudioManager_user.service \
"
EXTRA_OECMAKE += "-DWITH_PULSE_ROUTING_PLUGIN=ON -DWITH_PULSE_CONTROL_PLUGIN=ON -DWITH_ENABLED_IPC=DBUS -DWITH_DATABASE_STORAGE=ON"
+do_install_append() {
+ mkdir -p ${D}/etc/systemd/user
+ cp ${WORKDIR}/AudioManager_user.service ${D}/etc/systemd/user/AudioManager.service
+ mkdir -p ${D}/etc/systemd/user/default.target.wants
+ ln -sf /etc/systemd/user/AudioManager.service ${D}/etc/systemd/user/default.target.wants/AudioManager.service
+}
+
FILES_${PN} += "${libdir}/audioManager/control/* \
${libdir}/audioManager/routing/* \
"