Restarting named

tino

Verified User
Joined
Jan 8, 2004
Messages
92
Hi,

If I want to restart bind (named) from the DirectAdmin Control Panel I allways get:

The following error has occured
Details
Stopping named:

The only way I can succesfully restart bind is by doing from the console;

kill -hup <pid>

The only thing I can think of is that the PID file is not located in the directory where DA expects it to be. DNS works fine on the server though.

Is this some misconfiguration on my part or is there any thing else I miss here?

Tino
 
Yes,

The named "service" won't stop:

service named restart

Stopping named:
named: already running

I'm wondering what's causing this. The control panel can't stop the service either.

If I kill it with kill -9, the service is directly restarted (xinet.d does it's work).

Tino
 
Have you always had this problem?

Have you tried

/etc/rc.d/init.d/named stop
/etc/rc.d/init.d/named start

also?

Chris
 
Yeah, Tried that.

Same result.

Won't stop.

Perhaps some service restarts named directy after I stopped it?

[root@server root]# /etc/init.d/named stop
Stopping named:
[root@server root]# /etc/init.d/named start
named: already running

Tino
 
Hello,

On our server, I took out rndc to stop named, and replace the stop() function with:
Code:
stop() {
        # Stop daemons.
        echo -n $"Stopping $prog: "
        killproc named
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named
        echo
        return $RETVAL
}
in our boot script. (/etc/init.d/named) .. rndc didn't seem to work too well for that kind of stuff.

John
 
Okay.

I have 'purchased' SIM about a year ago. Guess I'll donate some more and install it on the DA server as well!

Thanks for the info you all!!!

Tino
 
Back
Top