svc-zonestat revision efd4c9b63ad77503c101fc6c2ed8ba96c9d52964
6418N/A#!/bin/sh
6418N/A#
6418N/A# CDDL HEADER START
6418N/A#
6418N/A# The contents of this file are subject to the terms of the
6418N/A# Common Development and Distribution License (the "License").
6418N/A# You may not use this file except in compliance with the License.
6418N/A#
6418N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6418N/A# or http://www.opensolaris.org/os/licensing.
6418N/A# See the License for the specific language governing permissions
6418N/A# and limitations under the License.
6418N/A#
6418N/A# When distributing Covered Code, include this CDDL HEADER in each
6418N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6418N/A# If applicable, add the following below this CDDL HEADER, with the
6418N/A# fields enclosed by brackets "[]" replaced with your own identifying
6418N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6418N/A#
6418N/A# CDDL HEADER END
6418N/A#
6418N/A#
6418N/A# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
6418N/A#
6418N/A
6418N/A. /lib/svc/share/smf_include.sh
6418N/Amode=$1
6418N/A
6418N/Acase "$mode" in
6418N/A'stop')
6418N/A smf_kill_contract $2 TERM
6418N/A /usr/lib/zones/zonestatd -c
6418N/A exit $SMF_EXIT_OK
6418N/A ;;
6418N/A*)
6418N/A exit $SMF_EXIT_ERR_FATAL
6418N/A ;;
6418N/Aesac
6418N/A
6418N/Aexit $SMF_EXIT_ERR_FATAL
6418N/A
6418N/A