1*d62bc4baSyz147064#!/sbin/sh 2*d62bc4baSyz147064# 3*d62bc4baSyz147064# CDDL HEADER START 4*d62bc4baSyz147064# 5*d62bc4baSyz147064# The contents of this file are subject to the terms of the 6*d62bc4baSyz147064# Common Development and Distribution License (the "License"). 7*d62bc4baSyz147064# You may not use this file except in compliance with the License. 8*d62bc4baSyz147064# 9*d62bc4baSyz147064# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*d62bc4baSyz147064# or http://www.opensolaris.org/os/licensing. 11*d62bc4baSyz147064# See the License for the specific language governing permissions 12*d62bc4baSyz147064# and limitations under the License. 13*d62bc4baSyz147064# 14*d62bc4baSyz147064# When distributing Covered Code, include this CDDL HEADER in each 15*d62bc4baSyz147064# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*d62bc4baSyz147064# If applicable, add the following below this CDDL HEADER, with the 17*d62bc4baSyz147064# fields enclosed by brackets "[]" replaced with your own identifying 18*d62bc4baSyz147064# information: Portions Copyright [yyyy] [name of copyright owner] 19*d62bc4baSyz147064# 20*d62bc4baSyz147064# CDDL HEADER END 21*d62bc4baSyz147064# 22*d62bc4baSyz147064 23*d62bc4baSyz147064# 24*d62bc4baSyz147064# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25*d62bc4baSyz147064# Use is subject to license terms. 26*d62bc4baSyz147064# 27*d62bc4baSyz147064# ident "%Z%%M% %I% %E% SMI" 28*d62bc4baSyz147064 29*d62bc4baSyz147064. /lib/svc/share/smf_include.sh 30*d62bc4baSyz147064 31*d62bc4baSyz147064# The real daemon is not started in a non-global zone. But we need to 32*d62bc4baSyz147064# create a dummy background process to preserve contract lifetime. 33*d62bc4baSyz147064 34*d62bc4baSyz147064if smf_is_nonglobalzone; then 35*d62bc4baSyz147064 (while true ; do sleep 3600 ; done) & 36*d62bc4baSyz147064 exit $SMF_EXIT_OK 37*d62bc4baSyz147064fi 38*d62bc4baSyz147064 39*d62bc4baSyz147064# Start the dlmgmtd daemon. 40*d62bc4baSyz147064/sbin/dlmgmtd 41*d62bc4baSyz147064if [ $? = 0 ]; then 42*d62bc4baSyz147064 exit $SMF_EXIT_OK 43*d62bc4baSyz147064else 44*d62bc4baSyz147064 exit $SMF_EXIT_ERR_FATAL 45*d62bc4baSyz147064fi 46