sample start- and killscripts are stored in ... ?

Will Yardley william+dns at hq.newdream.net
Tue Sep 25 17:49:32 UTC 2001


Michael M?nz wrote:
> the previous NS was installed by RPM which has automaticly installed a
> start and kill script in /etc/rc.d/ini.d (RedHat 7.1).
> 
> now i'm searching in the sources for a sample file ...  exists there a
> sample file ?  does anyone now where it's at ?

there isn't an init script in the distribution; generally whoever
maintains a package for a particular system or distribution does this
since it's specific to an OS.

i'd suggest doing one of two things.

1) download a slightly earlier rpm and extract it into a directory; then
use that init file and copy it into /etc/init.d/ (or /etc/rc.d/init.d/
or wherever it is on your system).  you'll have to use update-rc.d (if
red-hat provides this or a similar utility) or else add the links from
various run levels by hand.  on debian, update-rc.d bind defaults would
probably do it.

i'd suggest doing this option if you can.

there's a mandrake 9.2.0rc3 rpm - i'm not sure how to extract an rpm
(freebsd has rpm installed but it doesn't appear to have any options to
just unpack the files) but the init script from that should work on most
rpm style systems (possibly with some modifications) 

2) write your own script.  mine is hacked together from the debian
version but changed to use rndc (a subject which i'm still a bit unsure
of since if there are problems with bind rndc may not work properly).

w

-- 
GPG Public Key:
http://infinitejazz.net/will/pgp/


More information about the bind-users mailing list