diff options
Diffstat (limited to 'media-sound/pulseaudio/files/pulseaudio.init.d-2')
-rw-r--r-- | media-sound/pulseaudio/files/pulseaudio.init.d-2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d-2 b/media-sound/pulseaudio/files/pulseaudio.init.d-2 new file mode 100644 index 000000000..179d1885e --- /dev/null +++ b/media-sound/pulseaudio/files/pulseaudio.init.d-2 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.init.d-2,v 1.5 2007/11/07 12:07:10 flameeyes Exp $ + +depend() { + need localmount + use net + @neededservices@ +} + +start() { + ebegin "Starting pulseaudio" + PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system" + start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS} + eend $? +} + +stop() { + ebegin "Stopping pulseaudio" + start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid + eend $? +} |