|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE service_bundle |
|
3 SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
|
4 <!-- |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 |
|
24 Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
25 |
|
26 NOTE: This service manifest is not editable; its contents will |
|
27 be overwritten by package or patch operations, including |
|
28 operating system upgrade. Make customizations in a different |
|
29 file. |
|
30 --> |
|
31 <service_bundle type="manifest" name="system/colord"> |
|
32 <service version="1" type="service" name="system/colord"> |
|
33 |
|
34 <create_default_instance enabled='true' /> |
|
35 |
|
36 <single_instance /> |
|
37 |
|
38 <!-- Need / & /usr filesystems mounted --> |
|
39 <dependency |
|
40 name='usr' |
|
41 type='service' |
|
42 grouping='require_all' |
|
43 restart_on='none'> |
|
44 <service_fmri value='svc:/system/filesystem/minimal' /> |
|
45 </dependency> |
|
46 |
|
47 <dependency |
|
48 name='dbus' |
|
49 type='service' |
|
50 grouping='require_all' |
|
51 restart_on='restart'> |
|
52 <service_fmri value='svc:/system/dbus' /> |
|
53 </dependency> |
|
54 |
|
55 <!-- Need to be run before gdm is started --> |
|
56 <dependent |
|
57 name='colord_gdm' |
|
58 grouping='optional_all' |
|
59 restart_on='none'> |
|
60 <service_fmri value='svc:/application/graphical-login/gdm' /> |
|
61 </dependent> |
|
62 |
|
63 <method_context> |
|
64 <method_credential user='daemon' group='daemon' |
|
65 privileges='basic,{zone}:/var/lib/colord/*' /> |
|
66 </method_context> |
|
67 |
|
68 <exec_method timeout_seconds="60" type="method" name="start" |
|
69 exec="/lib/svc/method/svc-colord start"/> |
|
70 <exec_method timeout_seconds="60" type="method" name="stop" |
|
71 exec=":kill"/> |
|
72 <exec_method timeout_seconds="60" type="method" name="refresh" |
|
73 exec=":true"/> |
|
74 |
|
75 <stability value='Unstable' /> |
|
76 |
|
77 <template> |
|
78 <common_name> |
|
79 <loctext xml:lang="C">Colord system service |
|
80 </loctext> |
|
81 </common_name> |
|
82 |
|
83 </template> |
|
84 </service> |
|
85 </service_bundle> |