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>
This commit is contained in:
parent
4c80a4d350
commit
597b529927
@ -7,12 +7,19 @@
|
|||||||
start() {
|
start() {
|
||||||
printf "Starting pulseaudio: "
|
printf "Starting pulseaudio: "
|
||||||
umask 077
|
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"
|
echo "OK"
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
printf "Stopping pulseaudio: "
|
printf "Stopping pulseaudio: "
|
||||||
pulseaudio --kill
|
PULSE_RUNTIME_PATH=/var/run/pulse /usr/bin/pulseaudio --kill
|
||||||
echo "OK"
|
echo "OK"
|
||||||
}
|
}
|
||||||
restart() {
|
restart() {
|
||||||
|
Loading…
Reference in New Issue
Block a user