xref: /illumos-gate/usr/src/cmd/syseventd/sysevent.xml (revision 51396a8ee7fb52fe0ab33bfe7b4f495ad431904a)
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 syseventd.
31-->
32
33<service_bundle type='manifest' name='SUNWcsd:syseventd'>
34
35<service
36	name='system/sysevent'
37	type='service'
38	version='1'>
39
40	<create_default_instance enabled='true' />
41
42	<single_instance />
43
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>
51
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>
58
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>
70
71	<exec_method
72	    type='method'
73	    name='start'
74	    exec='/lib/svc/method/svc-syseventd %m'
75	    timeout_seconds='60' />
76
77	<exec_method
78	    type='method'
79	    name='stop'
80	    exec='/lib/svc/method/svc-syseventd %m %{restarter/contract}'
81	    timeout_seconds='60' />
82
83	<stability value='Unstable' />
84
85	<template>
86	    	<common_name>
87		    	<loctext xml:lang='C'>
88				system event notification
89			</loctext>
90		</common_name>
91
92		<documentation>
93		    	<manpage
94			    title='syseventd'
95			    section='1M'
96			    manpath='/usr/share/man' />
97		</documentation>
98	</template>
99</service>
100
101</service_bundle>
102