updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / icecast-kh / rc.d
blob467a846ba4e44ec9496ff8ee2a860d98950d271d
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy 'Starting Icecast Server'
9 /usr/bin/icecast -b -c /etc/icecast.xml </dev/null &>/dev/null
10 if [[ $? -gt 0 ]]; then
11 stat_fail
12 else
13 add_daemon icecast
14 stat_done
17 stop)
18 stat_busy 'Stopping Icecast Server'
19 rm_daemon icecast
20 stat_done
22 restart)
23 $0 stop
24 sleep 1
25 $0 start
28 echo "usage: $0 {start|stop|restart}"
29 esac
31 # vim:set ts=2 sw=2 ft=sh et: