named startup script

Adam Tkac atkac at redhat.com
Tue Jun 19 10:17:13 UTC 2007


Wael Shahin napsal(a):
> Hello List,
> I have installed BIND from source for the first time (Always use RPM or
> APT),
> the BIND version is 9.4.1 and the configure options are as follows
>
> ./configure --enable-libbind --enable-threads --sysconfdir=/etc
> --localstatedir=/var
>
> I have created the /etc/named.conf /etc/rndc.conf /var/named
>
> Created the user named, now I need to have a startup script for my
> debian machine!? I believe this is a very simple thing and I would
> appreciate any hints/help regarding this
>
> Thank you
If you need really _very_ simple initscript you could use something like

#!/bin/bash

start() {
    /usr/sbin/named -u named
}
stop() {
    /usr/sbin/rndc stop
}


case "$1" in
    start)
       start
       ;;
    stop)
       stop
       ;;
    *)
       echo 'Please specify start or stop'
       exit 1
esac


Regards, Adam



More information about the bind-users mailing list