HostOnNet Blog

Bind init script in FreeBSD Cpanel Server

Looking for Linux Server Admin or WordPress Expert? We can help.

On FreeBSD 5.4 Cpanel Server, i found the BIND init scripts are not working properly.

There was two init scripts at

/etc/init.d/named
/usr/local/etc/rc.d/020named.sh

Both the scripts are not able to start or stop bind. Both have same content, it seems these scripts are for Cpanel Linux servers, but copied to FreeBSD servers.

I can stop bind with command

# rndc stop

But rndc start do not work.

I can restart named with cpanel script available at

# /scripts/restartsrv_named

Its working fine.

At last found

/etc/rc.d/named

working properly.

server20# /etc/rc.d/named
Usage: /etc/rc.d/named [fastforceone](start stop restart rcvar reload status poll)
server20#

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

I have removed the two init scripts that are not working properly

server20# mkdir /root/backup
server20# mv /etc/init.d/named /root/backup
server20# mv /usr/local/etc/rc.d/020named.sh /root/backup

Posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.