[Fwd: Re: How to start named on startup]
Pete Ehlke
pde at ehlke.net
Fri Oct 3 18:25:28 UTC 2003
On Fri, Oct 03, 2003 at 02:18:42PM -0400, G. Roderick Singleton wrote:
>
> On Thu, 2003-10-02 at 23:49, John Smith wrote:
> > Hello all:
> >
> > Running BIND 9.2.2 on Solaris 8.
> >
> > My "named" file is located in /usr/local/sbin
> >
> > How do I configure the S72inetsvc file to
> > start it automatically? below is a portion
> > of it and it's not working.
> >
> > Thanks.
> >
> >
> >
> >
> > //////
> > if [ -f /usr/sbin/in.named -a -f /etc/named.conf ]; then
> > echo 'starting internet domain name server.'
> > /usr/sbin/in.named &
> > fi
>
> How about changing /etc/init.d/inetsvc in the following manner:
> #if [ -f /usr/sbin/in.named -a -f /etc/named.conf ]; then
> if [ -f /usr/sbin/named -a -f /etc/named.conf ]; then
> echo 'starting internet domain name server.'
> /usr/sbin/named &
> # /usr/sbin/in.named &
> fi
>
Changing vendor-supplied init scripts is rarely a good idea. What
happens during the next OS patch or upgrade when /etc/init.d/inetsvc
gets overwritten?
Better to simply create your own local init script. It's not hard and
it's something every sysadmin ought to know how to do.
-Pete
More information about the bind-users
mailing list