8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / vscan / vscand / vscan.xml
blob87648f4f26c5930c1196e496d7bbe592bd3f07f7
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
5         CDDL HEADER START
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.
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.
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]
22         CDDL HEADER END
24         Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25         Use is subject to license terms.
27         NOTE:  This service manifest is not editable; its contents will
28         be overwritten by package or patch operations, including
29         operating system upgrade.  Make customizations in a different file.
30 -->
32 <service_bundle type='manifest' name='SUNWvscanr:vscan'>
34 <!-- Name the service to 'system/filesystem/vscan'  -->
35 <service
36         name='system/filesystem/vscan'
37         type='service'
38         version='1'>
40         <!-- Service has single instance  -->
41         <single_instance/>
43         <!-- Identify dependencies.  -->
44         <dependency name='network'
45             grouping='require_any'
46             restart_on='error'
47             type='service'>
48                 <service_fmri value='svc:/milestone/network'/>
49         </dependency>
51         <dependency name='filesystem-local'
52             grouping='require_all'
53             restart_on='error'
54             type='service'>
55                 <service_fmri value='svc:/system/filesystem/local'/>
56         </dependency>
58         <property_group name='general' type='framework'>
59                 <!-- To Start/Stop/Refresh the service -->
60                 <propval name='action_authorization' type='astring'
61                         value='solaris.smf.manage.vscan' />
62                 <propval name='value_authorization' type='astring'
63                         value='solaris.smf.manage.vscan' />
64         </property_group>
66         <!-- Create default service instance.  -->
67         <instance name='icap' enabled='false'>
69         <!-- Identify start/stop/refresh methods -->
70         <exec_method
71                 type='method'
72                 name='start'
73                 exec='/usr/lib/vscan/vscand'
74                 timeout_seconds='60' >
75                 <method_context>
76                         <method_credential
77                                 user='root'
78                                 group='sys'
79                                 privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'
80                                 limit_privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'/>
81                 </method_context>
82         </exec_method>
84         <exec_method
85                 type='method'
86                 name='stop'
87                 exec=':kill'
88                 timeout_seconds='60' >
89         </exec_method>
91         <exec_method
92                 type='method'
93                 name='refresh'
94                 exec=':kill -HUP'
95                 timeout_seconds='60' >
96         </exec_method>
98         <!-- vscan service-specific general configuration defaults -->
99         <property_group name='vs_general' type='application'>
100                 <stability value='Evolving' />
101                 <propval name='value_authorization' type='astring'
102                         value='solaris.smf.value.vscan' />
103                 <propval name='maxsize' type='astring'
104                         value='1GB' override='true'/>
105                 <propval name='maxsize_action' type='boolean'
106                         value='true' override='true'/>
107                 <propval name='types' type='astring'
108                         value='+*' override='true'/>
109                 <propval name='viruslog' type='astring'
110                         value='' override='true'/>
111         </property_group>
113         <!-- Create Service Template information -->
114         <template>
115                 <common_name>
116                         <loctext xml:lang='C'> VSCAN Service daemon</loctext>
117                 </common_name>
118                 <documentation>
119                         <manpage title='vscand' section='1M'
120                                 manpath='/usr/share/man' />
121                 </documentation>
122         </template>
124         </instance>
126         <stability value='Evolving' />
128 </service>
130 </service_bundle>