search for: liveice_pidnum

Displaying 1 result from an estimated 1 matches for "liveice_pidnum".

2004 Aug 06
3
Propping up liveice
...ript is # intended to be run often via cron. # # TODO: It's possible that all the processes 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 s...