xvnc-inetd.xml revision 919
235N/A<?xml version='1.0'?>
235N/A<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
235N/A<!--
235N/A Service manifest for the Xvnc service, when run from inetd(1M)
235N/A
822N/A Copyright 2009 Sun Microsystems, Inc. All rights reserved.
822N/A Use is subject to license terms.
235N/A
235N/A Permission is hereby granted, free of charge, to any person obtaining a
919N/A copy of this software and associated documentation files (the "Software"),
919N/A to deal in the Software without restriction, including without limitation
919N/A the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A and/or sell copies of the Software, and to permit persons to whom the
919N/A Software is furnished to do so, subject to the following conditions:
235N/A
919N/A The above copyright notice and this permission notice (including the next
919N/A paragraph) shall be included in all copies or substantial portions of the
919N/A Software.
235N/A
919N/A THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A DEALINGS IN THE SOFTWARE.
235N/A-->
235N/A
235N/A<service_bundle type='manifest' name='SUNWxwplr:vnc'>
235N/A
235N/A<service
235N/A name='application/x11/xvnc-inetd'
235N/A type='service'
235N/A version='1'>
235N/A
235N/A <create_default_instance enabled='false' />
235N/A
235N/A <restarter>
235N/A <service_fmri value='svc:/network/inetd:default' />
235N/A </restarter>
235N/A
235N/A <!--
235N/A Set a timeout of 0 to signify to inetd that we don't want to
235N/A timeout this service, since the forked process is the one that
235N/A does the service's work. This is the case for most/all legacy
235N/A inetd services; for services written to take advantage of SMF
235N/A capabilities, the start method should fork off a process to
235N/A handle the request and return a success code.
235N/A -->
235N/A <exec_method
235N/A type='method'
235N/A name='inetd_start'
822N/A exec='/usr/bin/Xvnc -inetd -query localhost -once securitytypes=none'
235N/A timeout_seconds='0'>
235N/A <method_context>
235N/A <method_credential user='noaccess' group='noaccess' />
235N/A </method_context>
235N/A </exec_method>
235N/A
235N/A <!--
235N/A Use inetd's built-in kill support to disable services.
235N/A -->
235N/A <exec_method
235N/A type='method'
235N/A name='inetd_disable'
235N/A exec=':kill'
235N/A timeout_seconds='0'>
235N/A </exec_method>
235N/A
235N/A <property_group name='inetd' type='framework'>
235N/A <propval name='name' type='astring' value='vnc-server' />
235N/A <propval name='endpoint_type' type='astring' value='stream' />
235N/A <propval name='proto' type='astring' value='tcp' />
235N/A <propval name='wait' type='boolean' value='false' />
235N/A <propval name='isrpc' type='boolean' value='false' />
235N/A <propval name='action_authorization' type='astring'
235N/A value='solaris.smf.manage.x11' />
235N/A <propval name='value_authorization' type='astring'
235N/A value='solaris.smf.manage.x11' />
235N/A </property_group>
235N/A
235N/A <stability value='External' />
235N/A
235N/A <template>
235N/A <common_name>
235N/A <loctext xml:lang='C'>
235N/A X server that displays to VNC viewers
235N/A </loctext>
235N/A </common_name>
235N/A <documentation>
235N/A <manpage title='Xvnc' section='1'
822N/A manpath='/usr/share/man' />
235N/A </documentation>
235N/A </template>
235N/A</service>
235N/A
235N/A</service_bundle>