Re: Core dumps

Todd Lyons <[email protected]> Mon, 11 May 2009 10:39:53 -0700
Newsgroups gmane.network.dns.bind9.dlz
Message-ID <[email protected]>
On Fri, May 8, 2009 at 3:41 PM, Scott Haneda <[email protected]> wrote:
>>
>> CentOS52[root@ivdns51 ~]# egrep '^OPTIONS' /etc/sysconfig/named
>> OPTIONS="-n 1"
>
> I am a little green to this Linux stuff, mostly using Launchd on OS X,
> I have an /etc/init.d/named file:
> Looking at lines 30 - 32 woudld I just change that to append the flags?
> if [ -x /usr/sbin/named-sdb ]; then
>         named='named-sdb -n 1'
> fi

It's easier to put the custom config settings in the /etc/sysconfig
directory because RedHat init scripts are built to look for them
there.  This is better fixed without modifying the init script
(because it will be replaced when you upgrade to a new rpm).  Here's
how I would do it.  Pay special note to the single quotes and double
quotes.

echo 'OPTIONS="-n 1"' >> /etc/sysconfig/named
/etc/init.d/named restart

The init script reads that file in (sources it in line 24), parses it,
adds the chroot options to it (lines 83-87), and then passes it to the
binary as it calls it (in line 93).

-- 
Regards...      Todd

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com