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