xref: /titanic_50/usr/src/cmd/boot/scripts/boot-archive-update.xml (revision 410038ae77cdf98b41f02831473fcf1fdfced25e)
158091fd8Ssetje<?xml version="1.0"?>
258091fd8Ssetje<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
358091fd8Ssetje<!--
458091fd8Ssetje Copyright 2006 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	ident	"%Z%%M%	%I%	%E% SMI"
2758091fd8Ssetje
2858091fd8Ssetje	NOTE:  This service manifest is not editable; its contents will
2958091fd8Ssetje	be overwritten by package or patch operations, including
3058091fd8Ssetje	operating system upgrade.  Make customizations in a different
3158091fd8Ssetje	file.
3258091fd8Ssetje-->
3358091fd8Ssetje
3458091fd8Ssetje<service_bundle type='manifest' name='SUNWcsr:boot-archive-update'>
3558091fd8Ssetje
3658091fd8Ssetje<service
3758091fd8Ssetje	name='system/boot-archive-update'
3858091fd8Ssetje	type='service'
3958091fd8Ssetje	version='1'>
4058091fd8Ssetje
4158091fd8Ssetje	<create_default_instance enabled='true' />
4258091fd8Ssetje
4358091fd8Ssetje	<single_instance/>
4458091fd8Ssetje
4558091fd8Ssetje
4658091fd8Ssetje	<!--
4758091fd8Ssetje	  This needs to depend on filesystem/local because the boot-archive
4858091fd8Ssetje	  or the GRUB menu may live in /stubboot.
4958091fd8Ssetje	-->
5058091fd8Ssetje	<dependency
5158091fd8Ssetje		name='filesystem'
5258091fd8Ssetje		grouping='require_all'
5358091fd8Ssetje		restart_on='none'
5458091fd8Ssetje		type='service'>
5558091fd8Ssetje		<service_fmri value='svc:/system/filesystem/local' />
5658091fd8Ssetje	</dependency>
5758091fd8Ssetje
58*410038aeSsetje	<!--
59*410038aeSsetje	  Since updating the boot-archive can take a while on slow machines or
60*410038aeSsetje	  when there are many glommed kernels to wad up, a longer timeout is
61*410038aeSsetje	  needed. However if it doesn't finish eventually something up, and
62*410038aeSsetje	  an error message to trigger further investigation is appropriate.
63*410038aeSsetje	-->
6458091fd8Ssetje	<exec_method
6558091fd8Ssetje		type='method'
6658091fd8Ssetje		name='start'
6758091fd8Ssetje		exec='/lib/svc/method/boot-archive-update'
68*410038aeSsetje		timeout_seconds='3600' />
6958091fd8Ssetje
7058091fd8Ssetje	<exec_method
7158091fd8Ssetje		type='method'
7258091fd8Ssetje		name='stop'
7358091fd8Ssetje		exec=':true'
7458091fd8Ssetje		timeout_seconds='3' />
7558091fd8Ssetje
7658091fd8Ssetje	<property_group name='startd' type='framework'>
7758091fd8Ssetje		<propval name='duration' type='astring' value='transient' />
7858091fd8Ssetje	</property_group>
7958091fd8Ssetje
8058091fd8Ssetje	<stability value='Unstable' />
8158091fd8Ssetje
8258091fd8Ssetje	<template>
8358091fd8Ssetje		<common_name>
8458091fd8Ssetje			<loctext xml:lang='C'>
8558091fd8Ssetje				update boot archive if necessary
8658091fd8Ssetje			</loctext>
8758091fd8Ssetje		</common_name>
8858091fd8Ssetje		<description>
8958091fd8Ssetje			<loctext xml:lang='C'>
9058091fd8Ssetje				This service updates the boot archive if
9158091fd8Ssetje				a non fatal file was out of sync or if this
9258091fd8Ssetje				is a reconfiguration boot.
9358091fd8Ssetje			</loctext>
9458091fd8Ssetje		</description>
9558091fd8Ssetje	</template>
9658091fd8Ssetje</service>
9758091fd8Ssetje
9858091fd8Ssetje</service_bundle>
99