HostOnNet Blog

bind init scripts on FreeBSD 5.4 Cpanel server

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


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/ 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/ start

Both scripts can’t start named. At last i start named with


Restarting named through WHM is also working. But none of the init scripts are working.

Posted in Uncategorized. Bookmark the permalink.

  • 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/ should work manage named.