svc-vntsd revision 28b1e50e4eed7be353f9778497714aab53ef2a0d
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Use is subject to license terms.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# CDDL HEADER START
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# The contents of this file are subject to the terms of the
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Common Development and Distribution License (the "License").
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# You may not use this file except in compliance with the License.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# See the License for the specific language governing permissions
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# and limitations under the License.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# CDDL HEADER END
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Start script for vntsd
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# For modifying parameters passed to vntsd, do not edit
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# this script. Instead use svccfg(1m) to modify the SMF
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# repository. For example:
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# svc:/ldoms/vntsd> setprop vntsd/vcc_device = "virtual-console-concentrator@1"
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# svc:/ldoms/vntsd> setprop vntsd/listen_addr = "192.168.1.1"
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi# svc:/ldoms/vntsd> setprop vntsd/authorization="true"
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Add LDoms vntsd authorization entries to etc/security/auth_attr if not
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# present. These define authorizations used by LDoms vntsd daemon.
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi $GREP '^solaris.vntsd.:' ${AUTH_ATTR} >/dev/null 2>&1
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi if [ $? -ne 0 ] ; then
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi# Added by svc-vntsd
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchisolaris.vntsd.:::LDoms vntsd Administration::
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchisolaris.vntsd.grant:::Delegate LDoms vntsd Administration::
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoresolaris.vntsd.consoles:::Access All LDoms Guest Consoles::
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# End of svc-vntsd
if [ $? -ne 0 ] ; then
if [ $? -eq 0 ] ; then
if [ -z "$vcc_device" ]; then
if [ -n "$listen_addr" ]; then
if [ -n "$timeout" ]; then
rc=$?
exit $SMF_ERR_OTHER
exit $SMF_ERR_FATAL
exit $SMF_EXIT_ERR_CONFIG
exit $SMF_EXIT_OK