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

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

  1. Fixing Bind RNDC errors in Cpanel Server
  2. Domain Name not resolving in Cpanel Server
  3. BizHat.com server apache recompiled
  4. Cpanel Server, Rebuilding named.conf
  5. New FreeBSD 5.4 Cpanel Server
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to bind init scripts on FreeBSD 5.4 Cpanel server

  1. markstos says:

    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.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>