svc-nscd revision cb5caa98562cf06753163f558cbcfe30b8f4673a
cf6d5fe78f4bffe1f0998439d87bd0951789d370bnicholes# CDDL HEADER START
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# The contents of this file are subject to the terms of the
6fbd2e53c97ea6976d93e0ac521adabc55e0fb73nd# Common Development and Distribution License (the "License").
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# You may not use this file except in compliance with the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# See the License for the specific language governing permissions
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# and limitations under the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# When distributing Covered Code, include this CDDL HEADER in each
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# If applicable, add the following below this CDDL HEADER, with the
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# fields enclosed by brackets "[]" replaced with your own identifying
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# information: Portions Copyright [yyyy] [name of copyright owner]
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# CDDL HEADER END
c3ff7979929443ce8cbc881239f6cf130b4e256aslive# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
08842292d2f1550b40ae73e0dafc7641c5955c82nd# Use is subject to license terms.
15ba1801088da1aad6d20609cf3f7b0b1eefce8aslive#ident "%Z%%M% %I% %E% SMI"
c3ff7979929443ce8cbc881239f6cf130b4e256aslive# Trusted Extensions non-global zones need special handling
c3ff7979929443ce8cbc881239f6cf130b4e256aslive # If needed create a door to the global zone daemon.
c3ff7979929443ce8cbc881239f6cf130b4e256aslive # If current service duration is not "transient", create
7c0cea9cb6030e6a71ae18f2aedb47a6c32678febnicholes # a dummy background process to preserve contract lifetime.
7c0cea9cb6030e6a71ae18f2aedb47a6c32678febnicholes if /bin/svcprop -q -c -p startd/duration $SMF_FMRI ; then
7c0cea9cb6030e6a71ae18f2aedb47a6c32678febnicholes duration=`/bin/svcprop -c -p startd/duration $SMF_FMRI`
7c0cea9cb6030e6a71ae18f2aedb47a6c32678febnicholes ( while true ; do sleep 3600 ; done ) &
c3ff7979929443ce8cbc881239f6cf130b4e256aslive # The real daemon is not started in non-global zones,
08842292d2f1550b40ae73e0dafc7641c5955c82nd # so exit now.