xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/svc-vrrp (revision 11076:445f05f9f7b4)
1*11076SCathy.Zhou@Sun.COM#!/sbin/sh
2*11076SCathy.Zhou@Sun.COM#
3*11076SCathy.Zhou@Sun.COM# CDDL HEADER START
4*11076SCathy.Zhou@Sun.COM#
5*11076SCathy.Zhou@Sun.COM# The contents of this file are subject to the terms of the
6*11076SCathy.Zhou@Sun.COM# Common Development and Distribution License (the "License").
7*11076SCathy.Zhou@Sun.COM# You may not use this file except in compliance with the License.
8*11076SCathy.Zhou@Sun.COM#
9*11076SCathy.Zhou@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*11076SCathy.Zhou@Sun.COM# or http://www.opensolaris.org/os/licensing.
11*11076SCathy.Zhou@Sun.COM# See the License for the specific language governing permissions
12*11076SCathy.Zhou@Sun.COM# and limitations under the License.
13*11076SCathy.Zhou@Sun.COM#
14*11076SCathy.Zhou@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
15*11076SCathy.Zhou@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*11076SCathy.Zhou@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
17*11076SCathy.Zhou@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
18*11076SCathy.Zhou@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
19*11076SCathy.Zhou@Sun.COM#
20*11076SCathy.Zhou@Sun.COM# CDDL HEADER END
21*11076SCathy.Zhou@Sun.COM#
22*11076SCathy.Zhou@Sun.COM
23*11076SCathy.Zhou@Sun.COM#
24*11076SCathy.Zhou@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25*11076SCathy.Zhou@Sun.COM# Use is subject to license terms.
26*11076SCathy.Zhou@Sun.COM#
27*11076SCathy.Zhou@Sun.COM
28*11076SCathy.Zhou@Sun.COM#
29*11076SCathy.Zhou@Sun.COM# Service Method Support Script for the VRRP service
30*11076SCathy.Zhou@Sun.COM#
31*11076SCathy.Zhou@Sun.COM
32*11076SCathy.Zhou@Sun.COM. /lib/svc/share/smf_include.sh
33*11076SCathy.Zhou@Sun.COM
34*11076SCathy.Zhou@Sun.COM# Start the vrrpd daemon
35*11076SCathy.Zhou@Sun.COM/usr/lib/inet/vrrpd
36*11076SCathy.Zhou@Sun.COMif [ $? = 0 ]; then
37*11076SCathy.Zhou@Sun.COM        exit $SMF_EXIT_OK
38*11076SCathy.Zhou@Sun.COMelse
39*11076SCathy.Zhou@Sun.COM        exit $SMF_EXIT_ERR_FATAL
40*11076SCathy.Zhou@Sun.COMfi
41