svc-intrd revision bd335c6465ddbafe543900df4b03247bfa288eff
bd335c6465ddbafe543900df4b03247bfa288effesolom#!/sbin/sh
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# CDDL HEADER START
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# The contents of this file are subject to the terms of the
bd335c6465ddbafe543900df4b03247bfa288effesolom# Common Development and Distribution License, Version 1.0 only
bd335c6465ddbafe543900df4b03247bfa288effesolom# (the "License"). You may not use this file except in compliance
bd335c6465ddbafe543900df4b03247bfa288effesolom# with the License.
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bd335c6465ddbafe543900df4b03247bfa288effesolom# or http://www.opensolaris.org/os/licensing.
bd335c6465ddbafe543900df4b03247bfa288effesolom# See the License for the specific language governing permissions
bd335c6465ddbafe543900df4b03247bfa288effesolom# and limitations under the License.
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# When distributing Covered Code, include this CDDL HEADER in each
bd335c6465ddbafe543900df4b03247bfa288effesolom# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bd335c6465ddbafe543900df4b03247bfa288effesolom# If applicable, add the following below this CDDL HEADER, with the
bd335c6465ddbafe543900df4b03247bfa288effesolom# fields enclosed by brackets "[]" replaced with your own identifying
bd335c6465ddbafe543900df4b03247bfa288effesolom# information: Portions Copyright [yyyy] [name of copyright owner]
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# CDDL HEADER END
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
bd335c6465ddbafe543900df4b03247bfa288effesolom# Use is subject to license terms.
bd335c6465ddbafe543900df4b03247bfa288effesolom#
bd335c6465ddbafe543900df4b03247bfa288effesolom# ident "%Z%%M% %I% %E% SMI"
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolom. /lib/svc/share/smf_include.sh
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolom# Don't start intrd if intrd can't be found or if intrd is already running.
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolomif [ ! -f /usr/lib/intrd ]; then
bd335c6465ddbafe543900df4b03247bfa288effesolom echo "$0: intrd daemon not installed"
bd335c6465ddbafe543900df4b03247bfa288effesolom exit $SMF_EXIT_ERR_CONFIG
bd335c6465ddbafe543900df4b03247bfa288effesolomfi
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolomif /usr/bin/pgrep -x -z global intrd >/dev/null; then
bd335c6465ddbafe543900df4b03247bfa288effesolom echo "$0: intrd is already running"
bd335c6465ddbafe543900df4b03247bfa288effesolom exit $SMF_EXIT_ERR_FATAL
bd335c6465ddbafe543900df4b03247bfa288effesolomfi
bd335c6465ddbafe543900df4b03247bfa288effesolom
bd335c6465ddbafe543900df4b03247bfa288effesolom/usr/lib/intrd &