xref: /illumos-gate/usr/src/cmd/svc/milestone/net-ipqos (revision 6ba597c56d749c61b4f783157f63196d7b2445f0)
1*6ba597c5SAnurag S. Maskey#!/sbin/sh
2*6ba597c5SAnurag S. Maskey#
3*6ba597c5SAnurag S. Maskey# CDDL HEADER START
4*6ba597c5SAnurag S. Maskey#
5*6ba597c5SAnurag S. Maskey# The contents of this file are subject to the terms of the
6*6ba597c5SAnurag S. Maskey# Common Development and Distribution License (the "License").
7*6ba597c5SAnurag S. Maskey# You may not use this file except in compliance with the License.
8*6ba597c5SAnurag S. Maskey#
9*6ba597c5SAnurag S. Maskey# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*6ba597c5SAnurag S. Maskey# or http://www.opensolaris.org/os/licensing.
11*6ba597c5SAnurag S. Maskey# See the License for the specific language governing permissions
12*6ba597c5SAnurag S. Maskey# and limitations under the License.
13*6ba597c5SAnurag S. Maskey#
14*6ba597c5SAnurag S. Maskey# When distributing Covered Code, include this CDDL HEADER in each
15*6ba597c5SAnurag S. Maskey# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*6ba597c5SAnurag S. Maskey# If applicable, add the following below this CDDL HEADER, with the
17*6ba597c5SAnurag S. Maskey# fields enclosed by brackets "[]" replaced with your own identifying
18*6ba597c5SAnurag S. Maskey# information: Portions Copyright [yyyy] [name of copyright owner]
19*6ba597c5SAnurag S. Maskey#
20*6ba597c5SAnurag S. Maskey# CDDL HEADER END
21*6ba597c5SAnurag S. Maskey#
22*6ba597c5SAnurag S. Maskey#
23*6ba597c5SAnurag S. Maskey# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24*6ba597c5SAnurag S. Maskey# Use is subject to license terms.
25*6ba597c5SAnurag S. Maskey#
26*6ba597c5SAnurag S. Maskey
27*6ba597c5SAnurag S. Maskey#
28*6ba597c5SAnurag S. Maskey# Load the IPQoS configuration.
29*6ba597c5SAnurag S. Maskey#
30*6ba597c5SAnurag S. Maskey
31*6ba597c5SAnurag S. Maskey. /lib/svc/share/smf_include.sh
32*6ba597c5SAnurag S. Maskey
33*6ba597c5SAnurag S. Maskey#
34*6ba597c5SAnurag S. Maskey# In a shared-IP zone we need this service to be up, but all of the
35*6ba597c5SAnurag S. Maskey# work it tries to do is irrelevant (and will actually lead to the
36*6ba597c5SAnurag S. Maskey# service failing if we try to do it), so just bail out.
37*6ba597c5SAnurag S. Maskey# In the global zone and exclusive-IP zones we proceed.
38*6ba597c5SAnurag S. Maskey#
39*6ba597c5SAnurag S. Maskeysmf_configure_ip || exit $SMF_EXIT_OK
40*6ba597c5SAnurag S. Maskey
41*6ba597c5SAnurag S. Maskey#
42*6ba597c5SAnurag S. Maskey# This is backgrounded so that any remote hostname lookups it performs
43*6ba597c5SAnurag S. Maskey# don't unduely delay startup. Any messages go via syslog.
44*6ba597c5SAnurag S. Maskey#
45*6ba597c5SAnurag S. Maskey
46*6ba597c5SAnurag S. Maskeyif [ -f /usr/sbin/ipqosconf -a -f /etc/inet/ipqosinit.conf ]; then
47*6ba597c5SAnurag S. Maskey        /usr/sbin/ipqosconf -s -a /etc/inet/ipqosinit.conf &
48*6ba597c5SAnurag S. Maskeyfi
49