summaryrefslogtreecommitdiff
path: root/extra/icecast/icecastd
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 12:44:24 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 12:44:24 -0500
commit071445e6a2bb31ddf638e6f2e5362953b47e72dc (patch)
tree9ec266d72aaa5971dee2d1abbe2de511d971de87 /extra/icecast/icecastd
parentc14218d562c03601d6d23666f77ed0c2f0025c1b (diff)
parentb8ea4461e461f0e1782e28b5810eb811423afa79 (diff)
Merge branch 'master' of vparabola:~/abslibre-pre-mips64el into pre
Conflicts: core/heimdal/PKGBUILD extra/apache-ant/PKGBUILD extra/aria2/PKGBUILD extra/bs/PKGBUILD extra/dosbox/PKGBUILD extra/ettercap-gtk/PKGBUILD extra/gqmpeg/PKGBUILD extra/gtk-theme-switch2/PKGBUILD extra/icecast/PKGBUILD extra/kmldonkey/PKGBUILD extra/kmplayer/PKGBUILD extra/libbtctl/PKGBUILD extra/libx86/PKGBUILD extra/mc/PKGBUILD extra/monotone/PKGBUILD extra/nbsmtp/PKGBUILD extra/nickle/PKGBUILD extra/nppangband/PKGBUILD extra/numlockx/PKGBUILD extra/python-gtkglext/PKGBUILD extra/speedcrunch/PKGBUILD extra/vbetool/PKGBUILD libre/xchat-gnome-libre/PKGBUILD libre/xchat-gnome-libre/gtk2-2.20.patch libre/xchat-gnome-libre/xchat-gnome-0.26.1-deprecated-symbol.patch libre/xchat-gnome-libre/xchat-gnome.install
Diffstat (limited to 'extra/icecast/icecastd')
-rw-r--r--extra/icecast/icecastd66
1 files changed, 0 insertions, 66 deletions
diff --git a/extra/icecast/icecastd b/extra/icecast/icecastd
deleted file mode 100644
index e6c91b08c..000000000
--- a/extra/icecast/icecastd
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-timeo=30
-
-getPID() {
- pgrep -u nobody icecast 2>/dev/null
-}
-
-case $1 in
- start)
- stat_busy "Starting Icecast Server"
- if getPID >/dev/null; then
- # already running
- stat_fail
- exit 1
- else
- /usr/bin/icecast -b -c /etc/icecast.xml &>/dev/null
- while (( timeo > 0 )); do
- if getPID >/dev/null; then
- add_daemon icecast
- stat_done
- exit 0
- fi
- sleep 1
- (( timeo-- ))
- done
- stat_fail
- exit 1
- fi
- ;;
-
- stop)
- stat_busy "Stopping Icecast Server"
- if ! getPID >/dev/null; then
- # not running
- stat_done
- exit 1
- fi
- if ! kill $(getPID) &> /dev/null; then
- stat_fail
- exit 1
- fi
- while (( timeo > 0 )); do
- if getPID >/dev/null; then
- rm_daemon icecast
- stat_done
- exit 0
- fi
- sleep 1
- (( timeo-- ))
- done
- stat_fail
- exit 1
- ;;
-
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0