Fail to start ypbind service if domainname is not set

This commit is contained in:
Honza Horák 2012-01-12 15:14:49 +01:00
parent 766e469314
commit 9b2113749c
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
echo $"'$NISDOMAIN' (/etc/yp.conf)"
else
logger -t ypbind $"domain not found"
exit 1
fi
fi
fi

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Version: 1.33
Release: 9%{?dist}
Release: 10%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
@ -117,6 +117,9 @@ fi
%doc README NEWS COPYING
%changelog
* Thu Jan 12 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-10
- Fail to start ypbind service if domainname is not set
* Wed Nov 16 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-9
- Fixed ypbind-post-waitbind to stop the service when binding is not success