diff options
author | Peter Seiderer <ps.report@gmx.net> | 2019-02-13 20:05:47 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2019-02-15 22:44:21 +0100 |
commit | 597b529927db0b43f9f0d533c27ddfcae4845c9f (patch) | |
tree | 52432e41a0714f8825d5fa08249cde023bff2489 | |
parent | 4c80a4d3501dee67c59c608b57f81b7453e6378b (diff) | |
download | buildroot-597b529927db0b43f9f0d533c27ddfcae4845c9f.tar.gz buildroot-597b529927db0b43f9f0d533c27ddfcae4845c9f.zip |
package/pulseaudio: fix S50pulseaudio init script
- 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>
-rw-r--r-- | package/pulseaudio/S50pulseaudio | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/package/pulseaudio/S50pulseaudio b/package/pulseaudio/S50pulseaudio index c1d88626f4..ea343a716d 100644 --- a/package/pulseaudio/S50pulseaudio +++ b/package/pulseaudio/S50pulseaudio @@ -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() { |