12334Ssetje<?xml version="1.0"?> 22334Ssetje<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 32334Ssetje<!-- 4*8944Sdp@eng.sun.com Copyright 2009 Sun Microsystems, Inc. All rights reserved. 52334Ssetje Use is subject to license terms. 62334Ssetje 72334Ssetje CDDL HEADER START 82334Ssetje 92334Ssetje The contents of this file are subject to the terms of the 102334Ssetje Common Development and Distribution License (the "License"). 112334Ssetje You may not use this file except in compliance with the License. 122334Ssetje 132334Ssetje You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 142334Ssetje or http://www.opensolaris.org/os/licensing. 152334Ssetje See the License for the specific language governing permissions 162334Ssetje and limitations under the License. 172334Ssetje 182334Ssetje When distributing Covered Code, include this CDDL HEADER in each 192334Ssetje file and include the License file at usr/src/OPENSOLARIS.LICENSE. 202334Ssetje If applicable, add the following below this CDDL HEADER, with the 212334Ssetje fields enclosed by brackets "[]" replaced with your own identifying 222334Ssetje information: Portions Copyright [yyyy] [name of copyright owner] 232334Ssetje 242334Ssetje CDDL HEADER END 252334Ssetje 262334Ssetje NOTE: This service manifest is not editable; its contents will 272334Ssetje be overwritten by package or patch operations, including 282334Ssetje operating system upgrade. Make customizations in a different 292334Ssetje file. 302334Ssetje--> 312334Ssetje 322334Ssetje<service_bundle type='manifest' name='SUNWcsr:boot-archive-update'> 332334Ssetje 342334Ssetje<service 352334Ssetje name='system/boot-archive-update' 362334Ssetje type='service' 372334Ssetje version='1'> 382334Ssetje 392334Ssetje <create_default_instance enabled='true' /> 402334Ssetje 412334Ssetje <single_instance/> 422334Ssetje 432334Ssetje 442334Ssetje <!-- 452334Ssetje This needs to depend on filesystem/local because the boot-archive 462334Ssetje or the GRUB menu may live in /stubboot. 472334Ssetje --> 482334Ssetje <dependency 492334Ssetje name='filesystem' 502334Ssetje grouping='require_all' 512334Ssetje restart_on='none' 522334Ssetje type='service'> 532334Ssetje <service_fmri value='svc:/system/filesystem/local' /> 542334Ssetje </dependency> 552334Ssetje 562427Ssetje <!-- 572427Ssetje Since updating the boot-archive can take a while on slow machines or 582427Ssetje when there are many glommed kernels to wad up, a longer timeout is 592427Ssetje needed. However if it doesn't finish eventually something up, and 602427Ssetje an error message to trigger further investigation is appropriate. 61*8944Sdp@eng.sun.com 62*8944Sdp@eng.sun.com Please note that a similar timeout exists in startd, which again 63*8944Sdp@eng.sun.com runs bootadm at the end of shutdown. These timeouts should be 64*8944Sdp@eng.sun.com adjusted in sync with each other. 652427Ssetje --> 662334Ssetje <exec_method 672334Ssetje type='method' 682334Ssetje name='start' 692334Ssetje exec='/lib/svc/method/boot-archive-update' 702427Ssetje timeout_seconds='3600' /> 712334Ssetje 722334Ssetje <exec_method 732334Ssetje type='method' 742334Ssetje name='stop' 752334Ssetje exec=':true' 762334Ssetje timeout_seconds='3' /> 772334Ssetje 782334Ssetje <property_group name='startd' type='framework'> 792334Ssetje <propval name='duration' type='astring' value='transient' /> 802334Ssetje </property_group> 812334Ssetje 822334Ssetje <stability value='Unstable' /> 832334Ssetje 842334Ssetje <template> 852334Ssetje <common_name> 862334Ssetje <loctext xml:lang='C'> 872334Ssetje update boot archive if necessary 882334Ssetje </loctext> 892334Ssetje </common_name> 902334Ssetje <description> 912334Ssetje <loctext xml:lang='C'> 922334Ssetje This service updates the boot archive if 932334Ssetje a non fatal file was out of sync or if this 942334Ssetje is a reconfiguration boot. 952334Ssetje </loctext> 962334Ssetje </description> 972334Ssetje </template> 982334Ssetje</service> 992334Ssetje 1002334Ssetje</service_bundle> 101