aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2014-10-15 17:55:13 +0300
committerHolger Behrens <holger.behrens@windriver.com>2014-10-17 17:29:15 +0200
commitcdad9a8862024022f6cee7785ee46f08fd20169c (patch)
tree91294a0ec15902d263065310917b36b0f98a2b8c
parentea108d64d277cebbea81e9d8fc2626398fed5957 (diff)
downloadmeta-ivi-cdad9a8862024022f6cee7785ee46f08fd20169c.tar.gz
meta-ivi-cdad9a8862024022f6cee7785ee46f08fd20169c.tar.bz2
meta-ivi-cdad9a8862024022f6cee7785ee46f08fd20169c.zip
pulseaudio: Added systemd user service
This is a custom service 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/pulseaudio/pulseaudio/pulseaudio_user.service11
-rw-r--r--meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend5
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio/pulseaudio_user.service b/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio/pulseaudio_user.service
new file mode 100644
index 0000000..2ea3d37
--- /dev/null
+++ b/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio/pulseaudio_user.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=pulseaudio server
+Requires=dbus.service
+After=dbus.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/pulseaudio -p /usr/lib/pulse-5.0/modules/ -n -F /etc/pulse/am_poc.pa
+Restart=always
+RestartSec=5
+TimeoutSec=5
diff --git a/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend
index c56bb05..97e45f4 100644
--- a/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend
+++ b/meta-ivi-demo/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend
@@ -3,8 +3,13 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
SRC_URI_append = " file://client_conf.patch \
file://daemon_conf.patch \
file://am_poc.pa \
+ file://pulseaudio_user.service \
"
do_install_append() {
cp ${WORKDIR}/am_poc.pa ${D}/etc/pulse
+ mkdir -p ${D}//etc/systemd/user
+ cp ${WORKDIR}/pulseaudio_user.service ${D}/etc/systemd/user/pulseaudio.service
+ mkdir -p ${D}/etc/systemd/user/default.target.wants
+ ln -sf /etc/systemd/user/pulseaudio.service ${D}/etc/systemd/user/default.target.wants/pulseaudio.service
}