Minor errors on boot
Michael Bernhardt
MBernha at bart.gov
Mon Oct 22 19:48:48 UTC 2007
When my 64-bit Centos5 machine boots up, I see the following messages:
process `rndc' is using obsolete setsockopt SO_BSDCOMPAT
process `named' is using obsolete setsockopt SO_BSDCOMPAT
But named starts and works fine. I'm using BIND 9.4.1p1. The only option I
used when compiling was --with-openssl.
Here's my startup script, if it helps. I've been carrying this same script
through multiple versions making changes as required. If someone has a more
up-to-date one that would be great to see. Note that named is chrooted in
the directory /var/named (so dbs are in /var/named/var/named):
#!/bin/sh
#
# named This shell script takes care of starting and stopping
# named (BIND DNS server).
#
# chkconfig: - 55 45
# description: named (BIND) is a Domain Name Server (DNS) \
# that is used to resolve host names to IP addresses.
# probe: true
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/local/sbin/named ] || exit 0
[ -f /var/named/etc/named.conf ] || exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting named... "
/usr/local/sbin/named -u named -t /var/named
echo
;;
stop)
# Stop daemons.
echo -n "Shutting down named... "
#pkill named
/usr/local/sbin/rndc stop
echo
;;
status)
/usr/local/sbin/rndc status
exit $?
;;
restart)
$0 stop
$0 start
;;
reload)
/usr/local/sbin/rndc reload
exit $?
;;
probe)
# named knows how to reload intelligently; we don't want linuxconf
# to offer to restart every time
/usr/local/sbin/rndc reload >/dev/null 2>&1 || echo start
exit 0
;;
*)
echo "Usage: named {start|stop|status|restart}"
exit 1
esac
exit $RETVAL
More information about the bind-users
mailing list