Skip to contentSkip to conversation

package/pulseaudio: fix S50pulseaudio init script

PATCH New Peter Seiderer 3 participants 3 messages Feb 13, 2019 – Feb 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/pulseaudio/S50pulseaudio | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
package/pulseaudio/S50pulseaudio +9 -2
index c1d88626f4..ea343a716d 100755
@@ -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() {
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/pulseaudio: fix S50pulseaudio init script

Quoted 7 lines · On Wed, 13 Feb 2019 20:05:47 +0100 Peter Seiderer <[email protected]> wrote:

- 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.

Quoted 8 lines

- fix the following stop error:

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

---
 package/pulseaudio/S50pulseaudio | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/pulseaudio: fix S50pulseaudio init script

In reply to Peter Seiderer
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer <[email protected]> writes:

- 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.

Quoted 5 lines

- fix the following stop error:

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

Committed to 2018.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard