1*18c2aff7Sartem#!/sbin/sh 2*18c2aff7Sartem# 3*18c2aff7Sartem# CDDL HEADER START 4*18c2aff7Sartem# 5*18c2aff7Sartem# The contents of this file are subject to the terms of the 6*18c2aff7Sartem# Common Development and Distribution License (the "License"). 7*18c2aff7Sartem# You may not use this file except in compliance with the License. 8*18c2aff7Sartem# 9*18c2aff7Sartem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*18c2aff7Sartem# or http://www.opensolaris.org/os/licensing. 11*18c2aff7Sartem# See the License for the specific language governing permissions 12*18c2aff7Sartem# and limitations under the License. 13*18c2aff7Sartem# 14*18c2aff7Sartem# When distributing Covered Code, include this CDDL HEADER in each 15*18c2aff7Sartem# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*18c2aff7Sartem# If applicable, add the following below this CDDL HEADER, with the 17*18c2aff7Sartem# fields enclosed by brackets "[]" replaced with your own identifying 18*18c2aff7Sartem# information: Portions Copyright [yyyy] [name of copyright owner] 19*18c2aff7Sartem# 20*18c2aff7Sartem# CDDL HEADER END 21*18c2aff7Sartem# 22*18c2aff7Sartem# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*18c2aff7Sartem# Use is subject to license terms. 24*18c2aff7Sartem# 25*18c2aff7Sartem# ident "%Z%%M% %I% %E% SMI" 26*18c2aff7Sartem 27*18c2aff7Sartem. /lib/svc/share/smf_include.sh 28*18c2aff7Sartem 29*18c2aff7Sartemcase "$1" in 30*18c2aff7Sartem'start') 31*18c2aff7Sartem if smf_is_nonglobalzone; then 32*18c2aff7Sartem /usr/sbin/svcadm disable $SMF_FMRI 33*18c2aff7Sartem echo "$SMF_FMRI is not supported in a local zone" 34*18c2aff7Sartem sleep 5 & 35*18c2aff7Sartem exit $SMF_EXIT_OK 36*18c2aff7Sartem fi 37*18c2aff7Sartem 38*18c2aff7Sartem [ ! -x /usr/lib/rmvolmgr ] && exit $SMF_EXIT_ERR_CONFIG 39*18c2aff7Sartem 40*18c2aff7Sartem /usr/lib/rmvolmgr -s 41*18c2aff7Sartem err=$? 42*18c2aff7Sartem if [ $err -ne 0 ]; then 43*18c2aff7Sartem echo "rmvolmgr failed to start: error $err" 44*18c2aff7Sartem exit $SMF_EXIT_ERR_FATAL 45*18c2aff7Sartem fi 46*18c2aff7Sartem ;; 47*18c2aff7Sartem 48*18c2aff7Sartem*) 49*18c2aff7Sartem echo "Usage: $0 { start }" 50*18c2aff7Sartem exit $SMF_EXIT_ERR_FATAL 51*18c2aff7Sartem ;; 52*18c2aff7Sartem 53*18c2aff7Sartem 54*18c2aff7Sartemesac 55*18c2aff7Sartem 56*18c2aff7Sartemexit $SMF_EXIT_OK 57