Merge commit 'b1e7e97d3b60469b243b3b2e22c7d8cbd11c7c90'
[unleashed.git] / usr / src / cmd / syseventd / sysevent.xml
blob4d470f15668153721abca540c36ce3c5159ba4e1
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 syseventd.
31 -->
33 <service_bundle type='manifest' name='SUNWcsd:syseventd'>
35 <service
36         name='system/sysevent'
37         type='service'
38         version='1'>
40         <create_default_instance enabled='true' />
42         <single_instance />
44         <dependency
45             name='usr'
46             grouping='require_all'
47             restart_on='none'
48             type='service'>
49                 <service_fmri value='svc:/system/filesystem/minimal' />
50         </dependency>
52         <dependent
53                 name='syseventd_single-user'
54                 grouping='require_all'
55                 restart_on='none'>
56                 <service_fmri value='svc:/milestone/single-user' />
57         </dependent>
59         <!--
60                 The fmd service exists in all Solaris zones, but only
61                 in the global zone (which syseventd is defined in) should
62                 it be dependent on this service.
63         -->
64         <dependent
65                 name='syseventd-fmd'
66                 grouping='require_all'
67                 restart_on='none'>
68                 <service_fmri value='svc:/system/fmd' />
69         </dependent>
71         <exec_method
72             type='method'
73             name='start'
74             exec='/lib/svc/method/svc-syseventd %m'
75             timeout_seconds='60' />
77         <exec_method
78             type='method'
79             name='stop'
80             exec='/lib/svc/method/svc-syseventd %m %{restarter/contract}'
81             timeout_seconds='60' />
83         <stability value='Unstable' />
85         <template>
86                 <common_name>
87                         <loctext xml:lang='C'>
88                                 system event notification
89                         </loctext>
90                 </common_name>
92                 <documentation>
93                         <manpage
94                             title='syseventd'
95                             section='8'
96                             manpath='/usr/share/man' />
97                 </documentation>
98         </template>
99 </service>
101 </service_bundle>