#!/bin/sh # # Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. for svc in client server xfr passwd update; do /usr/sbin/svcadm disable -t svc:/network/nis/$svc:default [ $? = 0 ] || \ echo "ypstop: could not disable network/nis/$svc:default" done /usr/sbin/svcadm disable -t svc:/network/nis/domain:default [ $? = 0 ] || \ echo "ypstop: could not disable network/nis/domain:default" # As this operation is likely configuration changing, restart the # name-services milestone (such that configuration-sensitive services # are in turn restarted). /usr/sbin/svcadm restart milestone/name-services exit 0