Bind init script in FreeBSD Cpanel Server

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

There was two init scripts at


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


working properly.

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

# /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/ /root/backup

Posted in Uncategorized. Bookmark the permalink.