ho fatto cosi

codice:
#! /bin/sh

count=`/sbin/service named status | egrep -w "stopped|dead" | wc -l `
if [ $count -ne 0 ]
then
     /sbin/service named restart
fi
e ora funziona!!
grazie