3 # ices This shell script takes care of starting and stopping
7 # description: Icecast is an Internet audio broadcasting system based on
8 # MPEG audio technology. Ices is a streamer for icecast.
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # Source networking configuration.
14 . /etc/sysconfig/network
16 # Check that networking is up.
17 [ ${NETWORKING} = "no" ] && exit 0
19 # Check that ices.conf exists.
20 [ -f /etc/icecast/ices.conf ] || (echo \
21 'There are two config files:
22 /etc/icecast/ices.conf.dist - default config (you must have XML support);
23 /etc/icecast/ices.conf.txt - text config file made for PLD by jack@pld.org.pl
24 After choosing one of them you have to configure it before run and rename
25 to /etc/icecast/ices.conf. Enjoy! Your PLD Team'\
28 # See how we were called.
33 # daemon --user icecast -s /bin/sh 'ices'
34 # Our daemon function doesn't include su's --shell function
35 [ -f /etc/icecast/ices.conf ] && \
36 ICES_CONFIG=`file /etc/icecast/ices.conf|grep XML`
37 if [ ${ICES_CONFIG} = "" ]; then
38 su icecast -s /bin/sh -c 'ices -c /etc/icecast/ices.conf'
40 . /etc/icecast/ices.conf
41 su icecast -s /bin/sh -c "ices ${ICES_OPTIONS}"
44 touch /var/lock/subsys/ices
49 killproc ices 2> /dev/null
50 rm -f /var/lock/subsys/ices
60 msg_usage "$0 {start|stop|restart|status}"