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