xref: /illumos-gate/usr/src/cmd/tsol/tnd/svc-tnd (revision f875b4eb)
1*f875b4ebSrica#!/sbin/sh
2*f875b4ebSrica#
3*f875b4ebSrica# CDDL HEADER START
4*f875b4ebSrica#
5*f875b4ebSrica# The contents of this file are subject to the terms of the
6*f875b4ebSrica# Common Development and Distribution License (the "License").
7*f875b4ebSrica# You may not use this file except in compliance with the License.
8*f875b4ebSrica#
9*f875b4ebSrica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*f875b4ebSrica# or http://www.opensolaris.org/os/licensing.
11*f875b4ebSrica# See the License for the specific language governing permissions
12*f875b4ebSrica# and limitations under the License.
13*f875b4ebSrica#
14*f875b4ebSrica# When distributing Covered Code, include this CDDL HEADER in each
15*f875b4ebSrica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*f875b4ebSrica# If applicable, add the following below this CDDL HEADER, with the
17*f875b4ebSrica# fields enclosed by brackets "[]" replaced with your own identifying
18*f875b4ebSrica# information: Portions Copyright [yyyy] [name of copyright owner]
19*f875b4ebSrica#
20*f875b4ebSrica# CDDL HEADER END
21*f875b4ebSrica#
22*f875b4ebSrica# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*f875b4ebSrica# Use is subject to license terms.
24*f875b4ebSrica#
25*f875b4ebSrica#ident	"%Z%%M%	%I%	%E% SMI"
26*f875b4ebSrica
27*f875b4ebSrica. /lib/svc/share/smf_include.sh
28*f875b4ebSrica
29*f875b4ebSrica[ ! -x /usr/sbin/tnd ] && exit $SMF_EXIT_ERR_CONFIG
30*f875b4ebSrica
31*f875b4ebSricaFMRI=svc:/network/tnd
32*f875b4ebSrica
33*f875b4ebSricaargs=""
34*f875b4ebSrica
35*f875b4ebSricaval=`svcprop -p tnd/debug_level $FMRI`
36*f875b4ebSrica[ -n "$val" ] && args="$args -d $val"
37*f875b4ebSrica
38*f875b4ebSricaval=`svcprop -p tnd/debug_file $FMRI`
39*f875b4ebSricaval=`eval echo $val`
40*f875b4ebSrica[ -n "$val" ] && args="$args -f $val"
41*f875b4ebSrica
42*f875b4ebSricaval=`svcprop -p tnd/poll_interval $FMRI`
43*f875b4ebSrica[ -n "$val" ] && args="$args -p $val"
44*f875b4ebSrica
45*f875b4ebSrica/usr/sbin/tnd $args &
46*f875b4ebSrica
47