17c478bd9Sstevel@tonic-gate<?xml version='1.0'?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate
57c478bd9Sstevel@tonic-gate CDDL HEADER START
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
8*2f349fb3STom Whitten Common Development and Distribution License (the "License").
9*2f349fb3STom Whitten You may not use this file except in compliance with the License.
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
137c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
147c478bd9Sstevel@tonic-gate and limitations under the License.
157c478bd9Sstevel@tonic-gate
167c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
177c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
187c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
197c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
207c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
217c478bd9Sstevel@tonic-gate
227c478bd9Sstevel@tonic-gate CDDL HEADER END
237c478bd9Sstevel@tonic-gate
24*2f349fb3STom Whitten Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25*2f349fb3STom Whitten Use is subject to license terms.
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
287c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
297c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
307c478bd9Sstevel@tonic-gate	file.
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate	Service manifest for rmtmpfiles.
337c478bd9Sstevel@tonic-gate-->
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:rmtmpfiles'>
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate<service
387c478bd9Sstevel@tonic-gate	name='system/rmtmpfiles'
397c478bd9Sstevel@tonic-gate	type='service'
407c478bd9Sstevel@tonic-gate	version='1'>
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate	<create_default_instance enabled='true' />
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate	<single_instance/>
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate	<dependency
477c478bd9Sstevel@tonic-gate		name='tmp'
487c478bd9Sstevel@tonic-gate		grouping='require_all'
497c478bd9Sstevel@tonic-gate		restart_on='none'
507c478bd9Sstevel@tonic-gate		type='service'>
517c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/minimal' />
527c478bd9Sstevel@tonic-gate	</dependency>
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate	<dependent
557c478bd9Sstevel@tonic-gate		name='rmtmpfiles_multi-user'
567c478bd9Sstevel@tonic-gate		grouping='require_all'
577c478bd9Sstevel@tonic-gate		restart_on='none'>
587c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user' />
597c478bd9Sstevel@tonic-gate	</dependent>
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate	<exec_method
627c478bd9Sstevel@tonic-gate		type='method'
637c478bd9Sstevel@tonic-gate		name='start'
647c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/rmtmpfiles'
657c478bd9Sstevel@tonic-gate		timeout_seconds='30' />
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate	<exec_method
687c478bd9Sstevel@tonic-gate		type='method'
697c478bd9Sstevel@tonic-gate		name='stop'
707c478bd9Sstevel@tonic-gate		exec=':true'
717c478bd9Sstevel@tonic-gate		timeout_seconds='1' />
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
747c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
757c478bd9Sstevel@tonic-gate	</property_group>
767c478bd9Sstevel@tonic-gate
77*2f349fb3STom Whitten	<!--
78*2f349fb3STom Whitten		This is used in the method script to determine whether files
79*2f349fb3STom Whitten		in /var/tmp should be deleted when the service is started.
80*2f349fb3STom Whitten	-->
81*2f349fb3STom Whitten	<property_group name='options' type='application'>
82*2f349fb3STom Whitten		<propval name='clean_vartmp' type='boolean' value='false'/>
83*2f349fb3STom Whitten		<propval name='value_authorization' type='astring'
84*2f349fb3STom Whitten			value='solaris.smf.value.rmtmpfiles' />
85*2f349fb3STom Whitten	</property_group>
86*2f349fb3STom Whitten
877c478bd9Sstevel@tonic-gate	<stability value='Evolving' />
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate	<template>
907c478bd9Sstevel@tonic-gate		<common_name>
917c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
927c478bd9Sstevel@tonic-gateremove temporary files
937c478bd9Sstevel@tonic-gate			</loctext>
947c478bd9Sstevel@tonic-gate		</common_name>
95*2f349fb3STom Whitten		<pg_pattern name="options" type="application">
96*2f349fb3STom Whitten			<description>
97*2f349fb3STom Whitten				<loctext xml:lang='C'>
98*2f349fb3STom WhittenProperties that control the runtime behavior of the service.
99*2f349fb3STom Whitten				</loctext>
100*2f349fb3STom Whitten			</description>
101*2f349fb3STom Whitten			<prop_pattern name="clean_vartmp" type='boolean'>
102*2f349fb3STom Whitten				<common_name>
103*2f349fb3STom Whitten					<loctext xml:lang='C'>
104*2f349fb3STom WhittenClean /var/tmp
105*2f349fb3STom Whitten					</loctext>
106*2f349fb3STom Whitten				</common_name>
107*2f349fb3STom Whitten				<description>
108*2f349fb3STom Whitten					<loctext xml:lang='C'>
109*2f349fb3STom WhittenRemove all files and directories from /var/tmp if set to true.
110*2f349fb3STom Whitten					</loctext>
111*2f349fb3STom Whitten				</description>
112*2f349fb3STom Whitten			</prop_pattern>
113*2f349fb3STom Whitten			<prop_pattern name="value_authorization" type="astring">
114*2f349fb3STom Whitten				<common_name>
115*2f349fb3STom Whitten					<loctext xml:lang='C'>
116*2f349fb3STom WhittenValue change authorization
117*2f349fb3STom Whitten					</loctext>
118*2f349fb3STom Whitten				</common_name>
119*2f349fb3STom Whitten				<description>
120*2f349fb3STom Whitten					<loctext xml:lang='C'>
121*2f349fb3STom WhittenDeclares authorization needed to change values in the options properety group.
122*2f349fb3STom Whitten					</loctext>
123*2f349fb3STom Whitten				</description>
124*2f349fb3STom Whitten			</prop_pattern>
125*2f349fb3STom Whitten		</pg_pattern>
1267c478bd9Sstevel@tonic-gate	</template>
1277c478bd9Sstevel@tonic-gate</service>
1287c478bd9Sstevel@tonic-gate
1297c478bd9Sstevel@tonic-gate</service_bundle>
130