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