xref: /illumos-gate/usr/src/cmd/dumpadm/dumpadm.xml (revision 4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72)
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	Service manifest for dumpadm.
31-->
32
33<service_bundle type='manifest' name='SUNWckr:dumpadm'>
34
35<service
36	name='system/dumpadm'
37	type='service'
38	version='1'>
39
40	<create_default_instance enabled='true' />
41
42	<single_instance />
43
44	<!--
45		The dumpadm(1M) service reconfigures the kernel's dump settings
46		from /etc/dumpadm.conf and then invokes savecore(1M) to locate
47		and retrieve any saved crash dumps.  It therefore needs to have
48		local filesystems mounted, and must also have an *optional*
49		dependency on nfs.client and autofs in case dumpadm -s has been
50		used to set the savecore directory to an NFS or AutoFS mount.
51	-->
52
53	<dependency
54		name='local-filesystems'
55		type='service'
56		grouping='require_all'
57		restart_on='none'>
58		<service_fmri value='svc:/system/filesystem/local' />
59	</dependency>
60
61	<dependency
62		name='remote-filesystems'
63		type='service'
64		grouping='optional_all'
65		restart_on='none'>
66		<service_fmri value='svc:/network/nfs/client' />
67		<service_fmri value='svc:/system/filesystem/autofs' />
68	</dependency>
69
70	<!--
71		The fmd service exists in all Solaris zones, but only
72		in the global zone (which dumpadm is defined in) should
73		it be dependent on dumpadm configuration.
74	-->
75	<dependent
76		name='dumpadm-fmd'
77		grouping='require_all'
78		restart_on='none'>
79		<service_fmri value='svc:/system/fmd' />
80	</dependent>
81
82	<exec_method
83		type='method'
84		name='start'
85		exec='/lib/svc/method/svc-dumpadm'
86		timeout_seconds='0' />
87
88	<exec_method
89		type='method'
90		name='stop'
91		exec=':true'
92		timeout_seconds='0' />
93
94	<property_group name='startd' type='framework'>
95		<propval name='duration' type='astring' value='transient' />
96	</property_group>
97
98	<stability value='Unstable' />
99
100	<template>
101		<common_name>
102			<loctext xml:lang='C'>
103				system crash dump configuration
104			</loctext>
105		</common_name>
106
107		<documentation>
108			<manpage
109				title='dumpadm'
110				section='1M'
111				manpath='/usr/share/man' />
112		</documentation>
113	</template>
114</service>
115
116</service_bundle>
117