Initial import
[sima-docker.git] / sima / start
1 #!/bin/sh
2
3 # Hand over to icecast
4 su -c "icecast2 -b -c /etc/icecast2/icecast.xml" icecast2
5
6 su -c "mpd /etc/mpd.conf" mpd
7
8 if [ -e /etc/mpd-sima.cfg ]; then
9     OPTIONS="${OPTIONS} --config /etc/mpd-sima.cfg"
10 fi
11
12 OPTIONS="${OPTIONS} --log /var/log/mpd/mpd-sima.log --daemon"
13 su -c "sh /usr/bin/sima ${OPTIONS}" mpd
14
15 tail -F /var/log/icecast2/access.log \
16         /var/log/icecast2/error.log \
17         /var/log/mpd/mpd.log \
18         /var/log/mpd/mpd-sima.log