svc-vntsd revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Use is subject to license terms.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# The contents of this file are subject to the terms of the
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Common Development and Distribution License (the "License").
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# You may not use this file except in compliance with the License.
a3a11c4f3fc9ba972802b811c4d95a9884d6ff4aMichael Sawyer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5d98cf67b32d785aca1a72ea1dc4d559fab39208Mark Andrews# See the License for the specific language governing permissions
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob Halley# and limitations under the License.
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# If applicable, add the following below this CDDL HEADER, with the
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
de8661e517ed679cfaa12e47eb9a8e23829ed320David Lawrence# CDDL HEADER END
de8661e517ed679cfaa12e47eb9a8e23829ed320David Lawrence# ident "%Z%%M% %I% %E% SMI"
90c4900d5cf1a1b556ae4c1de6338b2e7475ee55Mark Andrews# Start script for vntsd
764808211e952f1617aaa609281da66d80120c0dMark Andrews# For modifying parameters passed to vntsd, do not edit
764808211e952f1617aaa609281da66d80120c0dMark Andrews# this script. Instead use svccfg(1m) to modify the SMF
764808211e952f1617aaa609281da66d80120c0dMark Andrews# repository. For example:
cf300e03de3df3ff422db922520bf07c686c86daMark Andrews# svc:> select ldoms/vntsd
76477bd0e0a8f150f06f45c347d286b782cfa679Brian Wellington# svc:/ldoms/vntsd> setprop vntsd/vcc_device = "virtual-console-concentrator@1"
108490a7f8529aff50a0ac7897580b59a73d9845David Lawrence# svc:/ldoms/vntsd> setprop vntsd/listen_addr = "192.168.1.1"
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halleyvcc_device=`svcprop -p vntsd/vcc_device $SMF_FMRI 2>/dev/null`
52254f75267c734acf1f1fb982b6a3be05e93507Mark Andrewsif [ -z "$vcc_device" ]; then
f754fa97bc698cc251d227173a95e4d39a88ac01Mark Andrewslisten_addr=`svcprop -p vntsd/listen_addr $SMF_FMRI 2>/dev/null`
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halleyif [ -n "$listen_addr" ]; then
47d837a49967a6a1b290024f5efb0669276013b1Mukund Sivaramantimeout=`svcprop -p vntsd/timeout_minutes $SMF_FMRI 2>/dev/null`
51e0ad287f1b345f0c3316f0633aab14d0e8bb65Brian Wellingtonif [ -n "$timeout" ]; then
51e0ad287f1b345f0c3316f0633aab14d0e8bb65Brian Wellington /usr/lib/ldoms/vntsd $args || exit $SMF_EXIT_ERR_CONFIG
51e0ad287f1b345f0c3316f0633aab14d0e8bb65Brian Wellington echo "WARNING: /usr/lib/ldoms/vntsd is missing or not executable" >& 2