]> andersk Git - moira.git/blame - gen/hesiod.sh
*** empty log message ***
[moira.git] / gen / hesiod.sh
CommitLineData
de56407f 1#! /bin/sh
2TARFILE=/tmp/hesiod
ceb34639 3SRC_DIR=/site/_nameserver
de56407f 4DEST_DIR=/etc/athena/nameserver
5if [ ! -d $SRC_DIR ]; then
6 /bin/rm -f $SRC_DIR
7 /bin/mkdir $SRC_DIR
8 /bin/chmod 755 $SRC_DIR
9fi
de56407f 10cd $SRC_DIR
11for file in `/bin/tar tf $TARFILE`; do
12 if [ ./ = $file ]; then continue; fi
13 /bin/tar xf $TARFILE $file
14 if [ -s $file ]; then
15 /bin/mv -f $file $DEST_DIR
16 else
17 /bin/rm -f $file
18 fi
19done
de56407f 20
f89684dc 21/bin/rm -f $TARFILE
22kill -KILL `/bin/cat /etc/named.pid`
de56407f 23
f89684dc 24csh -fc "unlimit; /etc/named"
25
ceb34639 26while true; do
27 sleep 60
28 if [ -e /tmp/named.success ]
29 exit 0
30 fi
31 if [ -e /tmp/named.failure ]
32 exit 1
33 fi
34 if [ -e /etc/named.pid ]
35 exit 1
36 fi
37done
38
f89684dc 39rm -f $0
de56407f 40exit
41#
42# $Source$
43# $Header$
44#
This page took 0.140204 seconds and 5 git commands to generate.