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