In FreeBSD 5.4 Cpanel server, i found none of the init scripts can start or stop bind. In the server, there is two named startup scripts
/etc/init.d/named
/usr/local/etc/rc.d/020named.sh
Both have same code, allow start and stop, no status like in Linux cpanel server.
Bind is working fine, so i tried to stop it with
/etc/init.d/named stop
/usr/local/etc/rc.d/020named.sh stop
Both can’t stop bind. So i stoped it with command
# rndc stop
Named is stoped. I try to start named with
/etc/init.d/named start
/usr/local/etc/rc.d/020named.sh start
Both scripts can’t start named. At last i start named with
/scripts/restartsrv_named
Restarting named through WHM is also working. But none of the init scripts are working.
Related posts:

We ran into this as well. First there’s the matter of resolving two systems that both want to manage named: FreeBSD and cPanel. Since it’s best not to patch cPanel, we set named_enable=”NO” in /etc/rc.conf.
We also created this symlink. It allows the pid file to be where FreeBSD wants and expects it to be, but allows the cPanel management script to run without modification.
With these changes, the cPanel script in /usr/local/etc/rc.d/020named.sh should work manage named.