Log messages when starting ypbind service made more verbose

This commit is contained in:
Honza Horák 2011-09-15 17:54:21 +02:00
parent 91368b1d3b
commit 4bf12aea86
3 changed files with 8 additions and 5 deletions

View File

@ -12,7 +12,7 @@
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45
echo -n $"Binding NIS service: "
logger -t ypbind $"Binding NIS service"
timeout=10
firsttime=1
@ -33,8 +33,10 @@ then
fi
fi
sleep 2
echo -n "."
done
logger -t ypbind "Binding took $SECONDS seconds"
if [ $retval -eq 0 ]; then
logger -t ypbind \
"NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
@ -43,5 +45,3 @@ logger -t ypbind \
"NIS server for domain `domainname` is not responding."
fi
echo

View File

@ -14,10 +14,12 @@ if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
echo -n $"Setting NIS domain: "
if [ -n "$NISDOMAIN" ]; then
domainname $NISDOMAIN
echo $"'$NISDOMAIN' (environment variable)"
else # See if the domain is set in config file
NISDOMAIN=`awk '{ if ($1 == "domain") {print $2; exit} }' /etc/yp.conf`
if [ -n "$NISDOMAIN" ]; then
domainname $NISDOMAIN
domainname $NISDOMAIN
echo $"'$NISDOMAIN' (/etc/yp.conf)"
else
logger -t ypbind $"domain not found"
fi

View File

@ -119,6 +119,7 @@ fi
%changelog
* Thu Sep 15 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-6
- Fixed systemd unit file
- Log messages when starting ypbind service made more verbose
* Tue Aug 02 2011 Honza Horak <hhorak@redhat.com> - 3:1.33-5
- Fixed rpmlint errors