blob: d039bf5443f246629aa238de8dabb38205a6d0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
use net@extradepend@
}
start() {
ebegin "Starting pulseaudio"
HOME=/var/run/pulse
PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --use-pid-file=0
-n -F /etc/pulse/system.pa"
start-stop-daemon --start --chuid pulse:pulse \
--exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
eend $?
if [[ -S /var/run/pulse/native ]]; then
chgrp -R pulse-access /var/run/pulse
chmod 0750 /var/run/pulse
chmod 0660 /var/run/pulse/native
fi
}
stop() {
ebegin "Stopping pulseaudio"
start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio
eend $?
}
|