]>
Commit | Line | Data |
---|---|---|
749b1e90 MS |
1 | <?xml version="1.0"?> |
2 | <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
3 | <!-- | |
4 | Service manifest for CUPS. | |
5 | ||
6 | This service manifest introduces smf(5) services for CUPS. The services | |
7 | described in this file are as follows: | |
8 | ||
9 | svc:/application/cups/scheduler:default | |
10 | svc:/application/cups/in-lpd:default | |
11 | ||
12 | NOTE: This service manifest is not editable; its contents will be | |
13 | overwritten by package or patch operations, including operating system | |
14 | upgrade. Make customizations in a different file. | |
15 | ||
16 | Norm.Jacobs@Sun.COM | |
17 | ||
ee571f26 | 18 | CUPS data files in @datarootdir@... |
749b1e90 MS |
19 | --> |
20 | ||
21 | <service_bundle type='manifest' name='SUNWcups:services'> | |
22 | ||
23 | <service | |
24 | name='application/cups/scheduler' | |
25 | type='service' | |
26 | version='1'> | |
27 | ||
28 | <dependency | |
29 | name='filesystem_minimal' | |
30 | grouping='require_all' | |
31 | restart_on='none' | |
32 | type='service'> | |
33 | <service_fmri value='svc:/system/filesystem/minimal' /> | |
34 | </dependency> | |
35 | ||
36 | <dependency | |
37 | name='loopback' | |
38 | grouping='optional_all' | |
39 | restart_on='error' | |
40 | type='service'> | |
41 | <service_fmri value='svc:/network/loopback' /> | |
42 | </dependency> | |
43 | ||
44 | ||
45 | <dependency | |
46 | name='network' | |
47 | grouping='optional_all' | |
48 | restart_on='error' | |
49 | type='service'> | |
50 | <service_fmri value='svc:/milestone/network' /> | |
51 | </dependency> | |
52 | ||
53 | <dependency | |
54 | name='lpsched' | |
55 | grouping='exclude_all' | |
56 | restart_on='none' | |
57 | type='service'> | |
58 | <service_fmri value='svc:/application/print/server' /> | |
59 | </dependency> | |
60 | ||
61 | <exec_method | |
62 | type='method' | |
63 | name='stop' | |
64 | exec=':kill' | |
65 | timeout_seconds='60' /> | |
66 | ||
67 | <instance name='default' enabled='false' > | |
68 | ||
69 | <dependency | |
70 | name='config_data' | |
71 | grouping='require_all' | |
72 | restart_on='none' | |
73 | type='path'> | |
74 | <service_fmri value='file://localhost@sysconfdir@/cups/cupsd.conf' /> | |
75 | </dependency> | |
76 | ||
77 | <exec_method | |
78 | type='method' | |
79 | name='start' | |
80 | exec='@sbindir@/cupsd' | |
81 | timeout_seconds='60' > | |
82 | <method_context> | |
83 | <method_credential user='root' group='@CUPS_GROUP@' /> | |
84 | </method_context> | |
85 | </exec_method> | |
86 | ||
87 | <property_group name='general' type='framework'> | |
88 | <propval name='action_authorization' type='astring' | |
89 | value='solaris.smf.manage.cups' /> | |
90 | <propval name='value_authorization' type='astring' | |
91 | value='solaris.smf.value.cups' /> | |
92 | </property_group> | |
93 | ||
94 | <template> | |
95 | <common_name> | |
96 | <loctext xml:lang='C'> | |
97 | CUPS Print Spooler | |
98 | </loctext> | |
99 | </common_name> | |
100 | <documentation> | |
101 | <manpage title='cupsd' section='8' | |
102 | manpath='@mandir@' /> | |
103 | </documentation> | |
104 | </template> | |
105 | ||
106 | </instance> | |
107 | ||
108 | <stability value='Stable' /> | |
109 | ||
110 | </service> | |
111 | ||
112 | <service | |
113 | name='application/cups/in-lpd' | |
114 | type='service' | |
115 | version='1'> | |
116 | ||
c7017ecc MS |
117 | <restarter> |
118 | <service_fmri value='svc:/network/inetd:default' /> | |
119 | </restarter> | |
120 | ||
749b1e90 MS |
121 | <dependency |
122 | name='filesystem_minimal' | |
123 | grouping='require_all' | |
124 | restart_on='none' | |
125 | type='service'> | |
126 | <service_fmri value='svc:/system/filesystem/minimal' /> | |
127 | </dependency> | |
128 | ||
129 | <dependency | |
130 | name='loopback' | |
131 | grouping='require_any' | |
132 | restart_on='error' | |
133 | type='service'> | |
134 | <service_fmri value='svc:/network/loopback' /> | |
135 | </dependency> | |
136 | ||
137 | <dependency | |
138 | name='network' | |
139 | grouping='optional_all' | |
140 | restart_on='error' | |
141 | type='service'> | |
142 | <service_fmri value='svc:/milestone/network' /> | |
143 | </dependency> | |
144 | ||
145 | <dependency | |
146 | name='in-lpd' | |
147 | grouping='exclude_all' | |
148 | restart_on='none' | |
149 | type='service'> | |
150 | <service_fmri value='svc:/application/print/rfc1179' /> | |
151 | </dependency> | |
152 | ||
153 | <exec_method | |
154 | type='method' | |
155 | name='stop' | |
156 | exec=':kill' | |
157 | timeout_seconds='60' /> | |
158 | ||
159 | <instance name='default' enabled='false' > | |
749b1e90 MS |
160 | <dependency |
161 | name='cupsd' | |
162 | grouping='require_all' | |
163 | restart_on='none' | |
164 | type='service'> | |
165 | <service_fmri value='svc:/application/cups/scheduler' /> | |
166 | </dependency> | |
167 | ||
168 | <exec_method | |
169 | type='method' | |
170 | name='inetd_start' | |
171 | exec='@CUPS_SERVERBIN@/daemon/cups-lpd -o document-format=application/octet-stream' | |
172 | timeout_seconds='0'> | |
173 | <method_context> | |
174 | <method_credential user='@CUPS_USER@' group='@CUPS_GROUP@' /> | |
175 | </method_context> | |
176 | </exec_method> | |
177 | ||
178 | <property_group name='inetd' type='framework'> | |
179 | <stability value='Evolving' /> | |
180 | <propval name='endpoint_type' type='astring' value='stream' /> | |
181 | <propval name='name' type='astring' value='printer' /> | |
182 | <propval name='wait' type='boolean' value='false' /> | |
183 | <propval name='isrpc' type='boolean' value='false' /> | |
184 | <propval name='proto' type='astring' value='tcp6' /> | |
185 | </property_group> | |
186 | ||
187 | <property_group name='general' type='framework'> | |
188 | <propval name='action_authorization' type='astring' | |
189 | value='solaris.smf.manage.cups' /> | |
190 | <propval name='value_authorization' type='astring' | |
191 | value='solaris.smf.value.cups' /> | |
192 | </property_group> | |
193 | ||
194 | <template> | |
195 | <common_name> | |
196 | <loctext xml:lang='C'> | |
197 | CUPS Line Printer Daemon mini-server | |
198 | </loctext> | |
199 | </common_name> | |
200 | <documentation> | |
201 | <manpage title='cups-lpd' section='8' | |
202 | manpath='@mandir@' /> | |
203 | </documentation> | |
204 | </template> | |
205 | ||
206 | </instance> | |
207 | ||
208 | <stability value='Stable' /> | |
209 | ||
210 | </service> | |
211 | ||
212 | </service_bundle> |