Displaying 1 result from an estimated 1 matches for "icecast_pidnum".
2004 Aug 06
3
Propping up liveice
...es are alive, but that the
# liveice source has become disconnected from the icecast server
# somehow. We need a way to check for this condition, too.
LIVEICE_PIDS=`pgrep -u nobody 'liveice|lame'`
LIVEICE_PIDNUM=`echo $LIVEICE_PIDS | wc -w`
ICECAST_PIDS=`pgrep -u nobody 'icecast'`
ICECAST_PIDNUM=`echo $ICECAST_PIDS | wc -w`
if [ "$ICECAST_PIDNUM" -lt "6" ] ; then
kill -9 $LIVEICE_PIDS $ICECAST_PIDS >/dev/null 2>/dev/null
sleep 5
cd /usr/local/icecast/bin
su nobody -c ./start_streaming
echo "icecast restarted at `date`"
renice -1...