158091fd8Ssetje<?xml version="1.0"?> 258091fd8Ssetje<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 358091fd8Ssetje<!-- 4*4d53c7adSDan Price Copyright 2009 Sun Microsystems, Inc. All rights reserved. 558091fd8Ssetje Use is subject to license terms. 658091fd8Ssetje 758091fd8Ssetje CDDL HEADER START 858091fd8Ssetje 958091fd8Ssetje The contents of this file are subject to the terms of the 1058091fd8Ssetje Common Development and Distribution License (the "License"). 1158091fd8Ssetje You may not use this file except in compliance with the License. 1258091fd8Ssetje 1358091fd8Ssetje You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1458091fd8Ssetje or http://www.opensolaris.org/os/licensing. 1558091fd8Ssetje See the License for the specific language governing permissions 1658091fd8Ssetje and limitations under the License. 1758091fd8Ssetje 1858091fd8Ssetje When distributing Covered Code, include this CDDL HEADER in each 1958091fd8Ssetje file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2058091fd8Ssetje If applicable, add the following below this CDDL HEADER, with the 2158091fd8Ssetje fields enclosed by brackets "[]" replaced with your own identifying 2258091fd8Ssetje information: Portions Copyright [yyyy] [name of copyright owner] 2358091fd8Ssetje 2458091fd8Ssetje CDDL HEADER END 2558091fd8Ssetje 2658091fd8Ssetje NOTE: This service manifest is not editable; its contents will 2758091fd8Ssetje be overwritten by package or patch operations, including 2858091fd8Ssetje operating system upgrade. Make customizations in a different 2958091fd8Ssetje file. 3058091fd8Ssetje--> 3158091fd8Ssetje 3258091fd8Ssetje<service_bundle type='manifest' name='SUNWcsr:boot-archive-update'> 3358091fd8Ssetje 3458091fd8Ssetje<service 3558091fd8Ssetje name='system/boot-archive-update' 3658091fd8Ssetje type='service' 3758091fd8Ssetje version='1'> 3858091fd8Ssetje 3958091fd8Ssetje <create_default_instance enabled='true' /> 4058091fd8Ssetje 4158091fd8Ssetje <single_instance/> 4258091fd8Ssetje 4358091fd8Ssetje 4458091fd8Ssetje <!-- 4558091fd8Ssetje This needs to depend on filesystem/local because the boot-archive 4658091fd8Ssetje or the GRUB menu may live in /stubboot. 4758091fd8Ssetje --> 4858091fd8Ssetje <dependency 4958091fd8Ssetje name='filesystem' 5058091fd8Ssetje grouping='require_all' 5158091fd8Ssetje restart_on='none' 5258091fd8Ssetje type='service'> 5358091fd8Ssetje <service_fmri value='svc:/system/filesystem/local' /> 5458091fd8Ssetje </dependency> 5558091fd8Ssetje 56410038aeSsetje <!-- 57410038aeSsetje Since updating the boot-archive can take a while on slow machines or 58410038aeSsetje when there are many glommed kernels to wad up, a longer timeout is 59410038aeSsetje needed. However if it doesn't finish eventually something up, and 60410038aeSsetje an error message to trigger further investigation is appropriate. 61*4d53c7adSDan Price 62*4d53c7adSDan Price Please note that a similar timeout exists in startd, which again 63*4d53c7adSDan Price runs bootadm at the end of shutdown. These timeouts should be 64*4d53c7adSDan Price adjusted in sync with each other. 65410038aeSsetje --> 6658091fd8Ssetje <exec_method 6758091fd8Ssetje type='method' 6858091fd8Ssetje name='start' 6958091fd8Ssetje exec='/lib/svc/method/boot-archive-update' 70410038aeSsetje timeout_seconds='3600' /> 7158091fd8Ssetje 7258091fd8Ssetje <exec_method 7358091fd8Ssetje type='method' 7458091fd8Ssetje name='stop' 7558091fd8Ssetje exec=':true' 7658091fd8Ssetje timeout_seconds='3' /> 7758091fd8Ssetje 7858091fd8Ssetje <property_group name='startd' type='framework'> 7958091fd8Ssetje <propval name='duration' type='astring' value='transient' /> 8058091fd8Ssetje </property_group> 8158091fd8Ssetje 8258091fd8Ssetje <stability value='Unstable' /> 8358091fd8Ssetje 8458091fd8Ssetje <template> 8558091fd8Ssetje <common_name> 8658091fd8Ssetje <loctext xml:lang='C'> 8758091fd8Ssetje update boot archive if necessary 8858091fd8Ssetje </loctext> 8958091fd8Ssetje </common_name> 9058091fd8Ssetje <description> 9158091fd8Ssetje <loctext xml:lang='C'> 9258091fd8Ssetje This service updates the boot archive if 9358091fd8Ssetje a non fatal file was out of sync or if this 9458091fd8Ssetje is a reconfiguration boot. 9558091fd8Ssetje </loctext> 9658091fd8Ssetje </description> 9758091fd8Ssetje </template> 9858091fd8Ssetje</service> 9958091fd8Ssetje 10058091fd8Ssetje</service_bundle> 101