aboutsummaryrefslogtreecommitdiff
path: root/audio/pulseaudio/rc.pulseaudio
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pulseaudio/rc.pulseaudio')
-rw-r--r--audio/pulseaudio/rc.pulseaudio43
1 files changed, 0 insertions, 43 deletions
diff --git a/audio/pulseaudio/rc.pulseaudio b/audio/pulseaudio/rc.pulseaudio
deleted file mode 100644
index 81c9361d5002b..0000000000000
--- a/audio/pulseaudio/rc.pulseaudio
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-start()
-{
- if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
- echo "pulseaudio is running."
- else
- echo "Starting pulseaudio..."
- /usr/bin/sudo -u pulse /usr/bin/pulseaudio --start --use-pid-file=yes
- fi
-}
-
-stop()
-{
- if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
- printf "Stopping pulseaudio..."
- /usr/bin/sudo -u pulse /usr/bin/pulseaudio --kill
- while /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; do
- printf "."
- sleep 1
- done
- echo "Done"
- else
- echo "pulseaudio is not running."
- fi
-}
-
-status()
-{
- if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
- echo "pulseaudio is running."
- else
- echo "pulseaudio is not running."
- fi
-}
-
-case "$1" in
-'start')start;;
-'stop')stop;;
-'restart')stop;start;;
-'status')status;;
-*)echo "$0 start|stop|restart|status"
-esac