#!/sbin/sh # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "@(#)nlockmgr 1.1 06/08/01 SMI" # # Start the lockd service; we are serving NFS and we need to verify # that rpcbind is accepting traffic from the network. # BIND_FMRI=svc:/network/rpc/bind do_change=false if set -- `svcprop -t -p config/local_only $BIND_FMRI`; then if [ "$2" != boolean ]; then echo "$0: config/local_only property for $BIND_FMRI has wrong "\ "type" 1>&2 elif [ "$#" -ne 3 ]; then echo "$0: config/local_only property for $BIND_FMRI has wrong "\ "number of values" 1>&2 elif [ "$3" = true ]; then do_change=true fi else # If the property is not found, we just set it. do_change=true fi if $do_change then # These will generate errors in the log. svccfg -s $BIND_FMRI setprop config/local_only = boolean: false if [ $? != 0 ]; then echo "$0: WARNING setprop failed" 1>&2 fi svcadm refresh $BIND_FMRI if [ $? != 0 ]; then echo "$0: WARNING svcadm refresh failed" 1>&2 fi fi exec /usr/lib/nfs/lockd