1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
6 The contents of this file are subject to the terms of the
7 Common Development and Distribution License (the "License").
8 You may not use this file except in compliance with the License.
10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 or http://www.opensolaris.org/os/licensing.
12 See the License for the specific language governing permissions
13 and limitations under the License.
15 When distributing Covered Code, include this CDDL HEADER in each
16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 If applicable, add the following below this CDDL HEADER, with the
18 fields enclosed by brackets "[]" replaced with your own identifying
19 information: Portions Copyright [yyyy] [name of copyright owner]
23 NOTE: This service manifest is not editable; its contents will
24 be overwritten by package or patch operations, including
25 operating system upgrade. Make customizations in a different
28 Service manifest for the x11vnc server to provide remote access
29 to persistent GUI sessions, such as a system DISPLAY=:0 with its
30 currently rendered lightdm login or interactive user session.
33 Copyright 2022 Jim Klimov
35 <service_bundle type='manifest' name='x11vnc'>
37 <service name='application/x11/x11vnc' type='service' version='1'>
41 grouping='require_all'
44 <service_fmri value='svc:/system/filesystem/local'/>
47 <dependency name='multi-user'
48 grouping='require_all'
51 <service_fmri value='svc:/milestone/multi-user:default'/>
56 grouping='require_all'
59 <service_fmri value='svc:/milestone/sysconfig'/>
64 grouping='optional_all'
67 <service_fmri value='svc:/application/graphical-login/lightdm:default'/>
72 grouping='require_all'
75 <service_fmri value='svc:/system/utmp'/>
80 grouping='require_all'
83 <service_fmri value='svc:/application/x11/x11-init'/>
86 <exec_method type='method' name='start'
87 exec='/lib/svc/method/svc-x11vnc start' timeout_seconds='60'>
90 <exec_method type='method' name='stop'
91 exec=':kill' timeout_seconds='60'>
94 <exec_method type='method' name='refresh'
95 exec=':kill' timeout_seconds='60'>
98 <!-- Authorization -->
99 <property_group name='general' type='framework'>
100 <!-- to start stop x11vnc, same as for lightdm: -->
101 <propval name='action_authorization' type='astring'
102 value='solaris.smf.manage.dt.login' />
105 <property_group name='startd' type='framework'>
106 <!-- Track the started process until it exits -->
107 <propval name='duration' type='astring'
109 <!-- Keep restarting as long as it is enabled -->
110 <propval name='ignore_error' type='astring'
111 value='core,signal' />
114 <!-- Properties below may be defined at service or instance
115 level; note that not-empty strings and positive numbers
116 at the particular instance's level would have complete
117 precedence over service-level "general defaults":
119 <property_group name='x11vnc' type='application'>
120 <propval name='PERMISSION_MODEL' type='astring' value='lightdm' />
121 <propval name='ARGS' type='astring' value='' />
122 <propval name='BASE_PORT' type='integer' value='-1' />
125 <!-- Service instance name conveys the display number
126 (and per SMF syntax, may not be just a number):
128 <instance name='display-0' enabled='false' >
130 <!-- these are passed to x11vnc in the method script -->
131 <property_group name='x11vnc' type='application'>
132 <propval name='PERMISSION_MODEL' type='astring' value='lightdm' />
133 <!-- The daemon suggests a lot of custom configuration
134 for security, protocol aspects, etc. in the log
135 (consider listening on localhost and SSH tunnels,
136 and enabling software compositing in MATE if
137 window-dragging lags awfully, especially in VMs).
138 Note that if an X11 session gets logged in and
139 later disconnected, and that user account has a
140 ~/.vnc/passwd file, that one would be honored by
141 the method script when reconnecting the VNC again.
143 <propval name='ARGS' type='astring' value='' />
144 <!-- Normally values below are defaulted by the method
145 script or guessed from SMF instance name; however
146 in some setups it can make sense to override them:
148 <propval name='DISPLAY_NUMBER' type='integer' value='-1' />
149 <propval name='BASE_PORT' type='integer' value='-1' />
150 <propval name='PORT' type='integer' value='-1' />
157 <loctext xml:lang='C'>
158 X11VNC Remote desktop service
162 <loctext xml:lang='C'>
163 X11VNC Remote desktop service
167 <manpage title='x11vnc' section='1'
168 manpath='/usr/share/man'/>