svc-tsol-zones revision f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01
826N/A#!/sbin/sh
826N/A#
826N/A# CDDL HEADER START
826N/A#
826N/A# The contents of this file are subject to the terms of the
826N/A# Common Development and Distribution License (the "License").
826N/A# You may not use this file except in compliance with the License.
826N/A#
826N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
826N/A# or http://www.opensolaris.org/os/licensing.
826N/A# See the License for the specific language governing permissions
826N/A# and limitations under the License.
826N/A#
826N/A# When distributing Covered Code, include this CDDL HEADER in each
826N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
826N/A# If applicable, add the following below this CDDL HEADER, with the
826N/A# fields enclosed by brackets "[]" replaced with your own identifying
826N/A# information: Portions Copyright [yyyy] [name of copyright owner]
873N/A#
826N/A# CDDL HEADER END
826N/A#
826N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
826N/A# Use is subject to license terms.
826N/A#
3231N/A#ident "%Z%%M% %I% %E% SMI"
5613N/A
826N/A#
5613N/A# This is a transient dummy service for Trusted Solaris. It's function is
826N/A# to disable selected services so they will not be started in labeled zones.
826N/A#
961N/A
961N/A. /lib/svc/share/smf_include.sh
961N/A
961N/Aif [ `/sbin/zonename` = "global" ]; then
826N/A
961N/A # In the global zone, there's nothing to do so this service exits.
961N/A /usr/sbin/svcadm disable $SMF_FMRI || exit 1
5613N/A
826N/Afi
5613N/A
5613N/A# Disable any services here (remember to add dependencies to the
961N/A# tsol-zones XML manifest) ...
961N/A
961N/A
961N/Aexit $SMF_EXIT_OK
961N/A