Не стартует bind на vps-ке:
root@vps:~# /etc/init.d/bind9 start
Starting domain name service...: bind9 failed!
root@vps:~# tail /var/log/syslog
Aug 23 15:04:38 vps named[2569]: starting BIND 9.6-ESV-R1
Aug 23 15:04:38 vps named[2569]: built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2'
Aug 23 15:04:38 vps named[2569]: adjusted limit on open files from 1024 to 1048576
Aug 23 15:04:38 vps named[2569]: found 1 CPU, using 1 worker thread
Aug 23 15:04:38 vps named[2569]: using up to 4096 sockets
Aug 23 15:11:36 vps named[2640]: starting BIND 9.6-ESV-R1 -4 -u bind
Aug 23 15:11:36 vps named[2640]: built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2'
Aug 23 15:11:36 vps named[2640]: adjusted limit on open files from 1024 to 1048576
Aug 23 15:11:36 vps named[2640]: found 1 CPU, using 1 worker thread
Aug 23 15:11:36 vps named[2640]: using up to 4096 sockets
root@vps:~# grep isc_ /var/log/syslog
Aug 23 14:03:19 vps named[2034]: isc_log_open 'named.run' failed: permission denied
Aug 23 14:03:29 vps named[2041]: isc_log_open 'named.run' failed: permission denied
Aug 23 14:03:36 vps named[2047]: isc_log_open 'named.run' failed: permission denied
Aug 23 14:03:44 vps named[2053]: isc_log_open 'named.run' failed: permission denied
Aug 23 14:03:50 vps named[2059]: isc_log_open 'named.run' failed: permission denied
root@vps:~# egrep PID /etc/init.d/bind9
PIDFILE=/var/run/bind/run/named.pid
--pidfile ${PIDFILE} -- $OPTIONS; then
status_of_proc -p ${PIDFILE} /usr/sbin/named bind9 2>/dev/null || ret=$?
root@vps:~# ls -ld /var/run/bind/run/
drwxrwxr-x 4 root bind 4096 2010-08-23 02:50 /var/run/bind/run/
O.K. давай так:
root@vps:~# named -d 3 -g -n 1
23-Aug-2010 15:15:02.516 starting BIND 9.6-ESV-R1 -d 3 -g -n 1
23-Aug-2010 15:15:02.516 built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2'
23-Aug-2010 15:15:02.516 adjusted limit on open files from 1024 to 1048576
23-Aug-2010 15:15:02.516 found 1 CPU, using 1 worker thread
23-Aug-2010 15:15:02.517 using up to 4096 sockets
23-Aug-2010 15:15:02.518 Registering DLZ_stub driver.
23-Aug-2010 15:15:02.518 Registering SDLZ driver 'dlz_stub'
23-Aug-2010 15:15:02.518 Registering DLZ driver 'dlz_stub'
23-Aug-2010 15:15:02.518 Registering DLZ filesystem driver.
23-Aug-2010 15:15:02.518 Registering SDLZ driver 'filesystem'
23-Aug-2010 15:15:02.518 Registering DLZ driver 'filesystem'
23-Aug-2010 15:15:02.518 Registering DLZ bdb driver.
23-Aug-2010 15:15:02.518 Registering SDLZ driver 'bdb'
23-Aug-2010 15:15:02.518 Registering DLZ driver 'bdb'
23-Aug-2010 15:15:02.518 Registering DLZ bdbhpt driver.
23-Aug-2010 15:15:02.519 Registering SDLZ driver 'bdbhpt'
23-Aug-2010 15:15:02.519 Registering DLZ driver 'bdbhpt'
23-Aug-2010 15:15:02.519 Registering DLZ ldap driver.
23-Aug-2010 15:15:02.519 Registering SDLZ driver 'ldap'
23-Aug-2010 15:15:02.519 Registering DLZ driver 'ldap'
Auto configuration failed
140452301330176:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:629:line 133
давай тогда так
http://paste.pocoo.org/show/253464/
---------------------------------------
Auto configuration failed 140452301330176:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:629:line 133
Явно относится к openssl, что подтверждает strace
root@vps:~# dog -l 133 /usr/lib/ssl/openssl.cnf
localityName_default = $ENV::KEY_CITY
На впске поднят OpenVPN, но каким это боком относится к bind'у? Да и чёрт с ним, основной вопрос: Почему не стартует с инит скрипта?
strace /etc/init.d/bind9 start
Debian 5.0.5