[Pdns-users] pdns_server won't start at reboot on freebsd 6.1

Marko Kobal marko.kobal at email.si
Tue Jun 6 12:02:54 UTC 2006


Hi,

> Edit the file 'pdns' in /usr/local/etc/rc.d and look for the following 
> line:
> # REQUIRE: DAEMON
> 
> then change it to:
> 
> # REQUIRE: DAEMON mysql
> 
> That should do the trick. If my other pdns port patches are commited 
> I'll add this fix as well.


I did this, but the problem stil persists (see below for full error report at reboot)

++++++++++++++++++++++++++++++++++++++++

cat /usr/local/etc/rc.d/pdns.sh
#!/bin/sh
#
# $FreeBSD: ports/dns/powerdns/files/pdns.in,v 1.2 2006/02/20 20:46:57 dougb Exp $
#

# PROVIDE: pdns_server
# REQUIRE: DAEMON mysql
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable powerdns:
#
#pdns_enable="YES"
#
# See pdns_server(8) for flags.
#

. /etc/rc.subr

name=pdns
rcvar=`set_rcvar`

command=/usr/local/sbin/pdns_server

# set defaults

pdns_enable=${pdns_enable:-"NO"}
pdns_conf=${pdns_conf:-"/usr/local/etc/pdns.conf"}
pdns_flags=${pdns_flags:-""}

load_rc_config ${name}

required_files=${pdns_conf}

run_rc_command "$1"

++++++++++++++++++++++++++++++++++++++++

Starting pdns.
pdns[439]: UDP server bound to 0.0.0.0:53
pdns[439]: TCP server bound to 0.0.0.0:53
pdns[439]: Set effective group id to 5300
pdns[439]: Set effective user id to 5301
pdns[439]: DNS Proxy launched, local port 26807, remote 127.0.0.1:5300
pdns[439]: Creating backend connection for TCP
Performing sanity check of nagios configuration:
pdns[439]: Launched webserver on 0.0.0.0:8081
pdns[439]: Master/slave communicator launching
pdns[439]: gmysql Connection failed: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: gmysql Connection failed: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: Caught an exception instantiating a backend, cleaning up
pdns[439]: Caught an exception instantiating a backend, cleaning up
pdns[439]: TCP server is unable to launch backends - will try again when questions come in: Unable to launch gmysql connection: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: Communicator thread died because of error: Unable to launch gmysql connection: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: gmysql Connection failed: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: Caught an exception instantiating a backend, cleaning up
pdns[439]: gmysql Connection failed: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: Caught an exception instantiating a backend, cleaning up
pdns[439]: gmysql Connection failed: Unable to connect to database: Can't connect to local MySQL server through socket '/tmp/mysql_system.sock' (2)
pdns[439]: Caught an exception instantiating a backend, cleaning up


-- 
Kind regards, Marko Kobal.


More information about the Pdns-users mailing list