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