Commit 526dde76 authored by Pekka Pessi's avatar Pekka Pessi

Renamed torture_sresolv as run_test_sresolv.

Complaining about SELinux if named fails mysteriously.

darcs-hash:20051018190428-65a35-02619a589650b22a919e1304148cc1de3c79ec36.gz
parent 8925a78f
......@@ -14,7 +14,7 @@ noinst_LTLIBRARIES = libsresolv.la
noinst_PROGRAMS = test_sresolv
TESTS = torture_sresolv
TESTS = run_test_sresolv
TESTS_ENVIRONMENT = $(SHELL)
......@@ -41,14 +41,9 @@ LDADD = libsresolv.la \
EXTRA_DIST = Doxyfile sresolv.docs
dist_noinst_DATA = torture_sresolv \
dist_noinst_DATA = run_test_sresolv \
127.zone 194.2.188 3.f.f.e.1.2.0.0.3.0.1.2.c.0.0.0 example.com
SU_SRCS = \
htable.h su_alloc.h su_strlst.h su_config.h \
su_alloc.c su_strdup.c su_strlst.c \
tstdef.h
# ----------------------------------------------------------------------
# Sofia specific rules
......
......@@ -124,8 +124,19 @@ type -p named >/dev/null || exit 77
named -f -d 999 -c named.conf.tmp &
sleep 5
test -r named.pid || exit 1
echo $0: started named pid $!
for i in 1 2 3 4 5; do
test -r named.pid && break
sleep 1;
done
test -r named.pid || {
echo $0: cannot start named >&2 ;
if fgrep -q -i -e SELINUX=enforcing /etc/selinux/config ; then
echo $0: perhaps you have to disable SELinux protection for named
fi
exit 77
}
function kill_named
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment