search for: liveice_pid

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

Did you mean: liveice_pids
2004 Aug 06
3
Propping up liveice
...it reports what had to be restarted and when. This script 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>...