]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | #! /bin/sh |
2 | TARFILE=/tmp/hesiod | |
ceb34639 | 3 | SRC_DIR=/site/_nameserver |
de56407f | 4 | DEST_DIR=/etc/athena/nameserver |
5 | if [ ! -d $SRC_DIR ]; then | |
6 | /bin/rm -f $SRC_DIR | |
7 | /bin/mkdir $SRC_DIR | |
8 | /bin/chmod 755 $SRC_DIR | |
9 | fi | |
de56407f | 10 | cd $SRC_DIR |
11 | for 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 | |
19 | done | |
de56407f | 20 | |
f89684dc | 21 | /bin/rm -f $TARFILE |
22 | kill -KILL `/bin/cat /etc/named.pid` | |
de56407f | 23 | |
f89684dc | 24 | csh -fc "unlimit; /etc/named" |
25 | ||
ceb34639 | 26 | while 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 | |
37 | done | |
38 | ||
f89684dc | 39 | rm -f $0 |
de56407f | 40 | exit |
41 | # | |
42 | # $Source$ | |
43 | # $Header$ | |
44 | # |