mipagent revision 5c0b7edee9bd9fad49038456b16972ff28fa4187
159N/A#!/sbin/sh
159N/A#
159N/A# CDDL HEADER START
159N/A#
159N/A# The contents of this file are subject to the terms of the
159N/A# Common Development and Distribution License, Version 1.0 only
159N/A# (the "License"). You may not use this file except in compliance
159N/A# with the License.
159N/A#
159N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
159N/A# or http://www.opensolaris.org/os/licensing.
159N/A# See the License for the specific language governing permissions
159N/A# and limitations under the License.
159N/A#
159N/A# When distributing Covered Code, include this CDDL HEADER in each
159N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159N/A# If applicable, add the following below this CDDL HEADER, with the
159N/A# fields enclosed by brackets "[]" replaced with your own identifying
159N/A# information: Portions Copyright [yyyy] [name of copyright owner]
159N/A#
159N/A# CDDL HEADER END
159N/A#
159N/A#
159N/A# ident "%Z%%M% %I% %E% SMI"
159N/A#
159N/A# Copyright (c) 1999 by Sun Microsystems, Inc.
159N/A# All rights reserved.
159N/A#
159N/A
159N/Acase "$1" in
159N/A'start')
159N/A [ -f /etc/inet/mipagent.conf ] && /usr/lib/inet/mipagent >/dev/msglog 2>&1 &
159N/A ;;
159N/A'stop')
159N/A /usr/bin/pkill -x -u 0 -P 1 mipagent
159N/A ;;
159N/A*)
159N/A echo "Usage: $0 { start | stop }"
159N/A exit 1
159N/A ;;
159N/Aesac
159N/Aexit 0
159N/A