8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / svc / milestone / rmtmpfiles.xml
blob30afaa9f05e0fb7a123212b860d5cb007c01fd41
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 2009 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
30         file.
32         Service manifest for rmtmpfiles.
33 -->
35 <service_bundle type='manifest' name='SUNWcsr:rmtmpfiles'>
37 <service
38         name='system/rmtmpfiles'
39         type='service'
40         version='1'>
42         <create_default_instance enabled='true' />
44         <single_instance/>
46         <dependency
47                 name='tmp'
48                 grouping='require_all'
49                 restart_on='none'
50                 type='service'>
51                 <service_fmri value='svc:/system/filesystem/minimal' />
52         </dependency>
54         <dependent
55                 name='rmtmpfiles_multi-user'
56                 grouping='require_all'
57                 restart_on='none'>
58                 <service_fmri value='svc:/milestone/multi-user' />
59         </dependent>
61         <exec_method
62                 type='method'
63                 name='start'
64                 exec='/lib/svc/method/rmtmpfiles'
65                 timeout_seconds='30' />
67         <exec_method
68                 type='method'
69                 name='stop'
70                 exec=':true'
71                 timeout_seconds='1' />
73         <property_group name='startd' type='framework'>
74                 <propval name='duration' type='astring' value='transient' />
75         </property_group>
77         <!-- 
78                 This is used in the method script to determine whether files
79                 in /var/tmp should be deleted when the service is started.
80         -->
81         <property_group name='options' type='application'>
82                 <propval name='clean_vartmp' type='boolean' value='false'/>
83                 <propval name='value_authorization' type='astring'
84                         value='solaris.smf.value.rmtmpfiles' />
85         </property_group>
87         <stability value='Evolving' />
89         <template>
90                 <common_name>
91                         <loctext xml:lang='C'>
92 remove temporary files
93                         </loctext>
94                 </common_name>
95                 <pg_pattern name="options" type="application">
96                         <description>
97                                 <loctext xml:lang='C'>
98 Properties that control the runtime behavior of the service.
99                                 </loctext>
100                         </description>
101                         <prop_pattern name="clean_vartmp" type='boolean'>
102                                 <common_name>
103                                         <loctext xml:lang='C'>
104 Clean /var/tmp
105                                         </loctext>
106                                 </common_name>
107                                 <description>
108                                         <loctext xml:lang='C'>
109 Remove all files and directories from /var/tmp if set to true.                  
110                                         </loctext>
111                                 </description>
112                         </prop_pattern>
113                         <prop_pattern name="value_authorization" type="astring">
114                                 <common_name>
115                                         <loctext xml:lang='C'>
116 Value change authorization
117                                         </loctext>
118                                 </common_name>
119                                 <description>
120                                         <loctext xml:lang='C'>
121 Declares authorization needed to change values in the options properety group.
122                                         </loctext>
123                                 </description>
124                         </prop_pattern>
125                 </pg_pattern>
126         </template>
127 </service>
129 </service_bundle>