1d62bc4baSyz#!/sbin/sh 20ba2cbe9Sxc# 30ba2cbe9Sxc# CDDL HEADER START 40ba2cbe9Sxc# 50ba2cbe9Sxc# The contents of this file are subject to the terms of the 60ba2cbe9Sxc# Common Development and Distribution License (the "License"). 70ba2cbe9Sxc# You may not use this file except in compliance with the License. 80ba2cbe9Sxc# 90ba2cbe9Sxc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 100ba2cbe9Sxc# or http://www.opensolaris.org/os/licensing. 110ba2cbe9Sxc# See the License for the specific language governing permissions 120ba2cbe9Sxc# and limitations under the License. 130ba2cbe9Sxc# 140ba2cbe9Sxc# When distributing Covered Code, include this CDDL HEADER in each 150ba2cbe9Sxc# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 160ba2cbe9Sxc# If applicable, add the following below this CDDL HEADER, with the 170ba2cbe9Sxc# fields enclosed by brackets "[]" replaced with your own identifying 180ba2cbe9Sxc# information: Portions Copyright [yyyy] [name of copyright owner] 190ba2cbe9Sxc# 200ba2cbe9Sxc# CDDL HEADER END 210ba2cbe9Sxc# 22d62bc4baSyz 230ba2cbe9Sxc# 24d62bc4baSyz# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 250ba2cbe9Sxc# Use is subject to license terms. 26*f18d8787SJerry Jelinek# Copyright 2012 Joyent, Inc. All rights reserved. 270ba2cbe9Sxc# 280ba2cbe9Sxc 29d62bc4baSyz. /lib/svc/share/smf_include.sh 30d62bc4baSyz 31*f18d8787SJerry Jelinek# The real daemon is not started in a non-global zone. Exit to leave 32*f18d8787SJerry Jelinek# an empty contract. 33d62bc4baSyz 34d62bc4baSyzif smf_is_nonglobalzone; then 35*f18d8787SJerry Jelinek [ -n "$SMF_EXIT_NODAEMON" ] && exit $SMF_EXIT_NODAEMON 36*f18d8787SJerry Jelinek (while true ; do sleep 3600 ; done) & 37d62bc4baSyz exit $SMF_EXIT_OK 38d62bc4baSyzfi 39d62bc4baSyz 40d62bc4baSyz# Start the dlmgmtd daemon. 41d62bc4baSyz/sbin/dlmgmtd 42d62bc4baSyzif [ $? = 0 ]; then 43d62bc4baSyz exit $SMF_EXIT_OK 44d62bc4baSyzelse 45d62bc4baSyz exit $SMF_EXIT_ERR_FATAL 46d62bc4baSyzfi 47