#!/usr/sbin/sh # # Copyright (c) 1992, 2011, Oracle and/or its affiliates. All rights reserved. # . /lib/svc/share/smf_include.sh case "$1" in 'start') /usr/lib/autofs/automountd /usr/sbin/automount & ;; 'stop') /usr/sbin/umountall -F autofs # Need to kill the entire service contract in case automount is hung # do to a misconfiguration, such as yp not up or responding. smf_kill_contract $2 TERM 1 [ $? -ne 0 ] && exit 1 ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0