package/pulseaudio: fix S50pulseaudio init script
authorPeter Seiderer <ps.report@gmx.net>
Wed, 13 Feb 2019 19:05:47 +0000 (20:05 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Feb 2019 21:44:21 +0000 (22:44 +0100)
- fix the following start warnings:

  W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
  W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
  N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
  N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.

- fix the following stop error:

  E: [pulseaudio] main.c: Failed to kill daemon: No such process

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pulseaudio/S50pulseaudio

index c1d88626f40b84bdf7232c5ec6a2d6d57a3237c3..ea343a716d26f97b17c75176517613780ad1ae75 100644 (file)
@@ -7,12 +7,19 @@
 start() {
        printf "Starting pulseaudio: "
        umask 077
-       /usr/bin/pulseaudio --system --daemonize
+       /usr/bin/pulseaudio \
+               --system \
+               --daemonize \
+               --disallow-module-loading \
+               --disallow-exit \
+               --exit-idle-time=-1 \
+               --use-pid-file \
+               --disable-shm
        echo "OK"
 }
 stop() {
        printf "Stopping pulseaudio: "
-       pulseaudio --kill
+       PULSE_RUNTIME_PATH=/var/run/pulse /usr/bin/pulseaudio --kill
        echo "OK"
 }
 restart() {