[quoted lines by kendell clark on 2016/03/19 at 13:11 -0500] I forgot to answer one of your questions - how to run Pulse Audio as a system daemon. Attached to this message are three files that show how I myself do it.
pulseaudio.service: A systemd service unit that I wrote for the purpose. run: The shell script that the systemd service unit invokes. script: The Pulse Audio script that the run script tells it to use. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.org/
[Unit] Description=Pulse Audio Server Documentation=man:pulseaudio(1) Documentation=http://www.pulseaudio.org/ DefaultDependencies=yes Requires=network.target After=syslog.target sound.target network.target remote-fs.target autofs.service Before=systemd-user-sessions.service [Service] Type=simple ExecStart=/opt/sys/conf/pulseaudio/run TimeoutStartSec=10 TimeoutStopSec=10 Restart=always RestartSec=30 Nice=-10 OOMScoreAdjust=-900 [Install] WantedBy=multi-user.target
#!/bin/bash -p directory="$(dirname "${0}")" exec /usr/bin/pulseaudio --system --no-cpu-limit --disable-shm --disallow-exit --disallow-module-loading -n -F "${directory}/script" "${@}" exit "${?}"
#!/usr/bin/pulseaudio -nF ### Automatically restore the volume of streams and devices load-module module-device-restore load-module module-stream-restore load-module module-card-restore ### Automatically augment property information from .desktop files ### stored in /usr/share/application load-module module-augment-properties #load-module module-udev-detect load-module module-alsa-sink sink_name=default_output device=sysdefault load-module module-alsa-source source_name=default_input device=sysdefault #load-module module-oss device="/dev/dsp" sink_name=output source_name=input #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input load-module module-null-sink .ifexists module-bluetooth-discover.so load-module module-bluetooth-discover .endif load-module module-native-protocol-unix load-module module-native-protocol-tcp auth-anonymous=1 load-module module-esound-protocol-unix load-module module-esound-protocol-tcp auth-anonymous=1 .ifexists module-zeroconf-publish.so load-module module-zeroconf-publish .endif .ifexists module-zeroconf-discover.so load-module module-zeroconf-discover .endif ### Automatically restore the default sink/source when changed by the user during runtime load-module module-default-device-restore ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams ### Make sure we always have a sink around, even if it is a null sink. load-module module-always-sink ### Honour intended role device property load-module module-intended-roles ### Automatically suspend sinks/sources that become idle for too long load-module module-suspend-on-idle ### Enable positioned event sounds load-module module-position-event-sounds ### Cork music streams when a phone stream is active #load-module module-cork-music-on-phone load-module module-cli-protocol-unix load-module module-http-protocol-tcp
_______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@mielke.cc For general information, go to: http://mielke.cc/mailman/listinfo/brltty