added a notice to init script when /etc/named.conf doesn't exist (#216075)
This commit is contained in:
parent
a510529323
commit
6139f9a32d
|
@ -784,6 +784,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
- renamed package, it should meet the N-V-R criteria
|
- renamed package, it should meet the N-V-R criteria
|
||||||
- fix for #216185: bind-chroot-admin able to change root mode 750
|
- fix for #216185: bind-chroot-admin able to change root mode 750
|
||||||
- added fix from #215997: incorrect permissions on dnszone.schema
|
- added fix from #215997: incorrect permissions on dnszone.schema
|
||||||
|
- added a notice to init script when /etc/named.conf doesn't exist (#216075)
|
||||||
|
|
||||||
* Mon Oct 30 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-6
|
* Mon Oct 30 2006 Martin Stransky <stransky@redhat.com> - 30:9.3.3-6
|
||||||
- fix for #200465: named-checkzone and co. cannot be run as non-root user
|
- fix for #200465: named-checkzone and co. cannot be run as non-root user
|
||||||
|
|
|
@ -60,7 +60,9 @@ if [ ! -r ${ROOTDIR}${named_conf} ] ; then
|
||||||
named_conf='/etc/named.caching-nameserver.conf';
|
named_conf='/etc/named.caching-nameserver.conf';
|
||||||
OPTIONS="$OPTIONS -c ${named_conf}";
|
OPTIONS="$OPTIONS -c ${named_conf}";
|
||||||
else
|
else
|
||||||
echo Locating $ROOTDIR/${named_conf} failed:
|
echo Locating $ROOTDIR/${named_conf} failed.
|
||||||
|
echo $"I can't find any configuration file. Please create it by system-config-bind"
|
||||||
|
echo $"or install caching-nameserver."
|
||||||
failure
|
failure
|
||||||
echo;
|
echo;
|
||||||
exit 1;
|
exit 1;
|
||||||
|
@ -204,7 +206,7 @@ stop() {
|
||||||
if [ $timeout -ge $NAMED_SHUTDOWN_TIMEOUT ]; then
|
if [ $timeout -ge $NAMED_SHUTDOWN_TIMEOUT ]; then
|
||||||
killproc $named -TERM >/dev/null 2>&1
|
killproc $named -TERM >/dev/null 2>&1
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo -n $"no response, killing with -TERM "
|
echo $"no response, killing with -TERM "
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
sleep 2 && echo -n "."
|
sleep 2 && echo -n "."
|
||||||
|
|
Loading…
Reference in New Issue