[SunHELP] BIND 9.2.3: named crash after 30sec.

Michael Karl mk at lexcom-net.de
Thu Sep 2 09:31:20 CDT 2004


> On Thu, Sep 02, 2004 at 04:17:31PM +0200, Michael Karl wrote:
>> Any hints ?
> 
> How are you starting named?
> 
> Maybe try starting it with -f to get control of it on a terminal.
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp

I use this script ... the old one from the Sol8/UE10-Backup

bash-2.05# more /etc/rc2.d/S50dns
#!/bin/sh
# Paths to key files:
root='/dns';
named="/usr/local/sbin/named";   # relative to $root
conf="$root/etc/named.conf";
pid="$root/var/run/named.pid";

case $1 in

'start')
        # Mount device on loopback filesystem
        umount /dns/dev/random 2>/dev/null
        mkdir /dns/dev/random 2>/dev/null
        mount -F lofs /dev/random /dns/dev/random

        # make sure it's dead first
        [ -f $pid ] && kill `cat $pid` >/dev/null 2>&1

        echo "Starting BIND dns name server `date`. . . \c"
        if [ -f $root/$named -a -f $conf ]; then
          (umask 027; /usr/sbin/chroot $root $named -u named)
          sleep 1
          if [ "$?" -ne 0 ]; then
            echo "Warning: BIND has not started"
          elif [ ! -f $pid ]; then
            echo "Warning: BIND pid file $pid missing."
          else
            echo "running with pid `cat $pid`".
          fi
        fi
        ;;
'stop')
        echo "Stopping BIND `date`. . .\c"
        kill `cat $pid`
        if [ "$?" -ne 0 ]; then
          echo "Warning: BIND not killed"
        else
          echo "done."
        fi
        ;;
'restart')
        echo "Restarting BIND `date`. . .\c"
        $0 stop
        sleep 1
        $0 start
        ;;
'reload')
        echo "Reloading BIND `date`. . .\c"
        kill -1 `cat $pid`
        if [ "$?" -ne 0 ]; then
          echo "Warning: BIND not reloaded"
        else
          echo "HUP send to PID `cat $pid`".
        fi
        ;;
*)
        echo "Usage: $0 { start | stop | restart | reload}"
;;
esac

I used this script since last September ...


Thanks Michael



More information about the SunHELP mailing list