xref: /titanic_41/usr/src/cmd/fm/fmd/common/fmd.xml (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License, Version 1.0 only
11 (the "License").  You may not use this file except in compliance
12 with the License.
13
14 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15 or http://www.opensolaris.org/os/licensing.
16 See the License for the specific language governing permissions
17 and limitations under the License.
18
19 When distributing Covered Code, include this CDDL HEADER in each
20 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21 If applicable, add the following below this CDDL HEADER, with the
22 fields enclosed by brackets "[]" replaced with your own identifying
23 information: Portions Copyright [yyyy] [name of copyright owner]
24
25 CDDL HEADER END
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different
32	file.
33-->
34
35<service_bundle type='manifest' name='SUNWckr:fmd'>
36
37<service
38	name='system/fmd'
39	type='service'
40	version='1'>
41
42	<create_default_instance enabled='true' />
43
44	<single_instance />
45
46	<!--
47	  Fault Manager Dependencies, Part 1
48
49	    At present, the fmd.xml manifest is delivered outside of SUNWfmd
50	    because it is a usr package.  Therefore we insert a dependency on
51	    the fmd binary being present (i.e. SUNWfmd has been installed).
52	-->
53	<dependency
54	    name='SUNWfmd'
55	    grouping='require_all'
56	    restart_on='none'
57	    type='path'>
58		<service_fmri value='file://localhost/usr/lib/fm/fmd/fmd' />
59	</dependency>
60
61	<!--
62	  Fault Manager Dependencies, Part 2
63
64	    fmd should be started after /var is mounted, syseventd and rpcbind
65	    are running, and dumpadm has initialized.  It is resilient to the
66	    the failure and/or interruption of all, and therefore does not
67	    restart under any circumstance.
68	-->
69	<dependency
70	    name='startup_req'
71	    grouping='require_all'
72	    restart_on='none'
73	    type='service'>
74		<service_fmri value='svc:/system/filesystem/minimal' />
75		<service_fmri value='svc:/system/dumpadm' />
76		<service_fmri value='svc:/system/sysevent' />
77	</dependency>
78
79	<dependency
80	    name='startup_opt'
81	    grouping='optional_all'
82	    restart_on='none'
83	    type='service'>
84		<service_fmri value='svc:/network/rpc/bind' />
85	</dependency>
86
87	<exec_method
88	    type='method'
89	    name='start'
90	    exec='/usr/lib/fm/fmd/fmd'
91	    timeout_seconds='0' />
92
93	<exec_method
94	    type='method'
95	    name='stop'
96	    exec=':kill'
97	    timeout_seconds='60' />
98
99	<stability value='Evolving' />
100
101	<template>
102	    	<common_name>
103		    	<loctext xml:lang='C'>
104				Solaris Fault Manager
105			</loctext>
106		</common_name>
107
108		<documentation>
109		    	<manpage
110			    title='fmd'
111			    section='1M'
112			    manpath='/usr/share/man' />
113		</documentation>
114	</template>
115</service>
116
117</service_bundle>
118