xref: /titanic_50/usr/src/cmd/svc/milestone/rmtmpfiles.xml (revision 60471b7bbfab236de7d8776aed871d919c5f81c3)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3<!--
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 2009 Sun Microsystems, Inc.  All rights reserved.
25 Use is subject to license terms.
26
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.
31
32	Service manifest for rmtmpfiles.
33-->
34
35<service_bundle type='manifest' name='SUNWcsr:rmtmpfiles'>
36
37<service
38	name='system/rmtmpfiles'
39	type='service'
40	version='1'>
41
42	<create_default_instance enabled='true' />
43
44	<single_instance/>
45
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>
53
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>
60
61	<exec_method
62		type='method'
63		name='start'
64		exec='/lib/svc/method/rmtmpfiles'
65		timeout_seconds='30' />
66
67	<exec_method
68		type='method'
69		name='stop'
70		exec=':true'
71		timeout_seconds='1' />
72
73	<property_group name='startd' type='framework'>
74		<propval name='duration' type='astring' value='transient' />
75	</property_group>
76
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>
86
87	<stability value='Evolving' />
88
89	<template>
90		<common_name>
91			<loctext xml:lang='C'>
92remove temporary files
93			</loctext>
94		</common_name>
95		<pg_pattern name="options" type="application">
96			<description>
97				<loctext xml:lang='C'>
98Properties 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'>
104Clean /var/tmp
105					</loctext>
106				</common_name>
107				<description>
108					<loctext xml:lang='C'>
109Remove 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'>
116Value change authorization
117					</loctext>
118				</common_name>
119				<description>
120					<loctext xml:lang='C'>
121Declares authorization needed to change values in the options properety group.
122					</loctext>
123				</description>
124			</prop_pattern>
125		</pg_pattern>
126	</template>
127</service>
128
129</service_bundle>
130