diff --git a/ypbind-post-waitbind b/ypbind-post-waitbind index 8029d69..57d7624 100755 --- a/ypbind-post-waitbind +++ b/ypbind-post-waitbind @@ -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 - diff --git a/ypbind-pre-setdomain b/ypbind-pre-setdomain index db711c5..26038fd 100755 --- a/ypbind-pre-setdomain +++ b/ypbind-pre-setdomain @@ -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 diff --git a/ypbind.spec b/ypbind.spec index 0813d80..6bc1b31 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -119,6 +119,7 @@ fi %changelog * Thu Sep 15 2011 Honza Horak - 3:1.33-6 - Fixed systemd unit file +- Log messages when starting ypbind service made more verbose * Tue Aug 02 2011 Honza Horak - 3:1.33-5 - Fixed rpmlint errors