comm: add -Wall
[unleashed.git] / usr / src / cmd / dumpadm / dumpadm.xml
blob333ffa96ba0986f4dc0084135ab130ecd712b58f
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.
6  CDDL HEADER START
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.
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.
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]
23  CDDL HEADER END
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.
30         Service manifest for dumpadm.
31 -->
33 <service_bundle type='manifest' name='SUNWckr:dumpadm'>
35 <service
36         name='system/dumpadm'
37         type='service'
38         version='1'>
40         <create_default_instance enabled='true' />
42         <single_instance />
44         <!--
45                 The dumpadm(8) service reconfigures the kernel's dump settings
46                 from /etc/dumpadm.conf and then invokes savecore(8) 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         -->
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>
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>
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>
82         <exec_method
83                 type='method'
84                 name='start'
85                 exec='/lib/svc/method/svc-dumpadm'
86                 timeout_seconds='0' />
88         <exec_method
89                 type='method'
90                 name='stop'
91                 exec=':true'
92                 timeout_seconds='0' />
94         <property_group name='startd' type='framework'>
95                 <propval name='duration' type='astring' value='transient' />
96         </property_group>
98         <stability value='Unstable' />
100         <template>
101                 <common_name>
102                         <loctext xml:lang='C'>
103                                 system crash dump configuration
104                         </loctext>
105                 </common_name>
107                 <documentation>
108                         <manpage
109                                 title='dumpadm'
110                                 section='8'
111                                 manpath='/usr/share/man' />
112                 </documentation>
113         </template>
114 </service>
116 </service_bundle>