blob: 65a947466c013449482ff51dcbd49af8aea214c7 (
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
32
33
34
35
36
37
|
#!/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
if [[ $(readlink /usr/bin/esd | xargs basename) == "esdcompat" ]] && [[ -S /tmp/.esd/socket ]]; then
chgrp -R pulse-access /tmp/.esd
chmod 0750 /tmp/.esd
chmod 0660 /tmp/.esd/socket
fi
}
stop() {
ebegin "Stopping pulseaudio"
start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio
eend $?
}
|