PDA

View Full Version : Restarting named



tino
01-30-2004, 03:40 AM
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

ProWebUK
01-30-2004, 07:58 AM
Have you tried using servce named restart in shell?

Chris

tino
01-30-2004, 08:05 AM
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

ProWebUK
01-30-2004, 08:15 AM
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

tino
01-30-2004, 08:18 AM
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

DirectAdmin Support
01-30-2004, 10:52 AM
Hello,

On our server, I took out rndc to stop named, and replace the stop() function with:


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

tino
01-30-2004, 02:06 PM
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