Latest bind's init script fails to reload because of typo in init script :<br />
<br />
reload() {<br />
[ "$EUID" != "0" ] && exit<br />
<br />
echo -n $"Reloading "$named": "<br />
check_pidfile<br />
p=`pidofnamed`<br />
RETVAL=$?<br />
if [ "$RETVAL" -eq 0 ]; then<br />
/usr/sbin/rndc reload >/dev/null 2>&1 || /bin/kill -HUP $p;<br />
RETVAL=$?<br />
fi<br />
[ "$RETVAL" -eq 0 ] && success $"$named reload" || failure $"$named reload"<br />
echo<br />
return $RETVAL<br />
}<br />
<br />
<br />
there is p=`pidofnamed` instead of p=`pidof named`
↧