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