From randy@psg.com Fri Oct  1 04:18:23 1993
Received: from rip.psg.com by fido.wps.com (5.67/wps.com-hackery)
	id AA29457; Fri, 1 Oct 93 04:18:18 -0700
Received: by rip.psg.com (Smail3.1.28.1 #5)
	id m0oiiUu-00031iC; Fri, 1 Oct 93 04:18 PDT
Message-Id: <m0oiiUu-00031iC@rip.psg.com>
From: randy@psg.com (Randy Bush)
Subject: Re: bug in comedia.com zone (fwd)Re: bug in comedia.com zone
To: fen@imagine.comedia.com (Fen Labalme)
Date: Fri, 1 Oct 1993 04:18:04 -0700 (PDT)
Cc: tomj@wps.com (Tom Jennings)
In-Reply-To: <199310010912.CAA01577@comedia.com> from "Fen Labalme" at Oct 1, 93 02:12:05 am
Content-Type: text
Content-Length: 1751      
Status: OR

>> You oughta fix your DNS file... edit, KILL -HUP the procid for named..

Being lazy, I have this little script.  I will append it and add it to the
monthly invoice.  :-)

> Yow!  I've received my first email (from Randy) on comedia

It would be a bug report.  Sorry.

> ...and Thanks, Randy, for consenting to be a secondary server.

All part of the expensive plan.

randy


#!/bin/sh
#
# dns: named signal commander
#
RELOAD=1
DUMP=2
STATS=6
KILL=9
DEBUG=16
DEBOFF=17

PID=`cat /etc/named.pid`

if [ -z "$1" ]; then
   echo usage: `basename $0` {reload,dump,stats,on,off,kill}
   fi

while [ -n "$1" ]; do
    case $1 in
        reload) kill -$RELOAD $PID
		echo "named cache reload issued"
		;;
        dump)   kill -$DUMP $PID
		echo "named cache dumped to /usr/tmp/named_dump.db"
		;;
        stats)  kill -$STATS $PID
		echo "named statistics dumped to /usr/tmp/named.stat"
		;;
        on)	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
        	kill -$DEBUG $PID
		echo "named debug incremented"
		;;
        off)	kill -$DEBOFF $PID
		echo "named debug off"
		;;
        kill)   kill -$KILL $PID
		echo "named killed"
		;;
	start)	named
		echo  "named restarted"
		;;
        *)	echo "useage is $0 {reload,dump,stats,kill}"
		exit 1
		;;
        esac
    shift
    done

exit 0

# end

