<?xml version='1.0'?> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <!-- CDDL HEADER START The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] CDDL HEADER END Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. NOTE: This service manifest is not editable; its contents will be overwritten by package or patch operations, including operating system upgrade. Make customizations in a different file. Service manifest for rmtmpfiles. --> <service_bundle type='manifest' name='SUNWcsr:rmtmpfiles'> <service name='system/rmtmpfiles' type='service' version='1'> <create_default_instance enabled='true' /> <single_instance/> <dependency name='tmp' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/minimal' /> </dependency> <dependent name='rmtmpfiles_multi-user' grouping='require_all' restart_on='none'> <service_fmri value='svc:/milestone/multi-user' /> </dependent> <exec_method type='method' name='start' exec='/lib/svc/method/rmtmpfiles' timeout_seconds='30' /> <exec_method type='method' name='stop' exec=':true' timeout_seconds='1' /> <property_group name='startd' type='framework'> <propval name='duration' type='astring' value='transient' /> </property_group> <!-- This is used in the method script to determine whether files in /var/tmp should be deleted when the service is started. --> <property_group name='options' type='application'> <propval name='clean_vartmp' type='boolean' value='false'/> <propval name='value_authorization' type='astring' value='solaris.smf.value.rmtmpfiles' /> </property_group> <stability value='Evolving' /> <template> <common_name> <loctext xml:lang='C'> remove temporary files </loctext> </common_name> <pg_pattern name="options" type="application"> <description> <loctext xml:lang='C'> Properties that control the runtime behavior of the service. </loctext> </description> <prop_pattern name="clean_vartmp" type='boolean'> <common_name> <loctext xml:lang='C'> Clean /var/tmp </loctext> </common_name> <description> <loctext xml:lang='C'> Remove all files and directories from /var/tmp if set to true. </loctext> </description> </prop_pattern> <prop_pattern name="value_authorization" type="astring"> <common_name> <loctext xml:lang='C'> Value change authorization </loctext> </common_name> <description> <loctext xml:lang='C'> Declares authorization needed to change values in the options properety group. </loctext> </description> </prop_pattern> </pg_pattern> </template> </service> </service_bundle>