named can't reload after add new website

Hello,

Note that DA only calls a "reload" not a full "restart" for new domains.
However, looking over the named boot script for freebsd the reload done by DA will end up doing a full restart of named (which is fine).

So test with this to see if it's being restarted:
Code:
ps ax | grep named
/usr/local/etc/rc.d/named reload
ps ax | grep named
the PID number for named (on the far left) should be changing. Example, on our test system:
Code:
[root@freebsd7 /usr/local/etc/rc.d]# ps ax |grep named
77400  ??  Is     0:00.04 /usr/sbin/named -u bind
[root@freebsd7 /usr/local/etc/rc.d]# ./named reload
Stopping Named:                 [ OK ]
Starting Named:                 [ OK ]
[root@freebsd7 /usr/local/etc/rc.d]# ps ax |grep named
77424  ??  Ss     0:00.04 /usr/sbin/named -u bind
[root@freebsd7 /usr/local/etc/rc.d]#
Check the contents of your named boot script. Make sure it looks like this file:
http://www.directadmin.com/named.freebsd

Also check your system to see where your named.pid file is.
With our named boot script, it can be one of either:
/var/run/named.pid
/var/run/named/pid

Try deleting both of them (if they exist). Kill named manually, eg:
Code:
killall -9 named
start it up, and see which one is created.

If it's located somewhere else, then the boot script won't see it, and named won't get restarted since the process id number won't be found by the script.

John
 
ekaja# /usr/local/etc/rc.d/named reload
Stopping Named: [ OK ]
Starting Named: [ OK ]
ekaja# ps ax |grep named
56680 ?? Ss 0:00.12 /usr/sbin/named -u bind
ekaja# cat /var/run/named/pid
56680

it work all because i use
http://www.directadmin.com/named.freebsd


I have more problem
Apache can't reload too

after add new domain : i reload DNS by myself
i saw "Apache is functioning normally"
and after reload apache is normal


Welcome to the home of domain.com
To change this page, upload your website into the public_html directory

Date Created: Wed Jan 27 00:38:59 2010


thank you.
 
Jan 27 17:23:00 ekaja /usr/sbin/cron[7669]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:24:00 ekaja /usr/sbin/cron[7745]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:25:00 ekaja /usr/sbin/cron[7795]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:25:00 ekaja /usr/sbin/cron[7796]: (root) CMD (/usr/libexec/atrun)
Jan 27 17:26:00 ekaja /usr/sbin/cron[7896]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:27:00 ekaja /usr/sbin/cron[8040]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:28:00 ekaja /usr/sbin/cron[8149]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:29:00 ekaja /usr/sbin/cron[8274]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:30:00 ekaja /usr/sbin/cron[8319]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:30:00 ekaja /usr/sbin/cron[8320]: (root) CMD (/usr/libexec/atrun)
Jan 27 17:31:00 ekaja /usr/sbin/cron[8370]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:32:00 ekaja /usr/sbin/cron[8403]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:33:00 ekaja /usr/sbin/cron[8511]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:33:00 ekaja /usr/sbin/cron[8512]: (operator) CMD (/usr/libexec/save-entropy)
Jan 27 17:34:00 ekaja /usr/sbin/cron[8649]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:35:00 ekaja /usr/sbin/cron[8822]: (root) CMD (/usr/local/directadmin/dataskq)
Jan 27 17:35:00 ekaja /usr/sbin/cron[8823]: (root) CMD (/usr/libexec/atrun)

i think "dataskq" is work.
but

/usr/local/directadmin/data/task.queue
have 200 lines++
 
It shouldn't have that many lines. It should run every minute.

It's not running.

Check to make sure you have the cronjob set to run the task.queue. I don't remember what it's called or where it is, offhand, but you should be able to search these forums to find it.

Jeff
 
the dataskq program had a problem. The word elf refers to the format of the program file; there's a good explanation here.

Jeff
 
I would guess the binary is either corrupted, incomplete, or the wrong one for your OS.

1) Download yourself a fresh copy of the update.tar.gz, and extract it:
http://help.directadmin.com/item.php?id=29

2) Type:
Code:
./directadmin o
to check to see which OS the binary is compiled for. Compare to your OS version.

John
 
Back
Top