xref: /titanic_50/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.xml (revision a0563a48b6bba0177dc249048ea515ca080c73af)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright (c) 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/fm/snmp-notify'
35	type='service'
36	version='1'>
37
38	<create_default_instance enabled='false' />
39
40	<!--
41	 Just one instance of snmp-notify should be running in any OS instance.
42	-->
43	<single_instance />
44
45	<!--
46	    Add a dependency on SUNWfmd being installed
47	-->
48	<dependency
49	    name='SUNWfmd'
50	    grouping='require_all'
51	    restart_on='none'
52	    type='path'>
53		<service_fmri value='file://localhost/usr/lib/fm/notify/snmp-notify' />
54	</dependency>
55
56	<dependency
57	    name='startup_req'
58	    grouping='require_all'
59	    restart_on='none'
60	    type='service'>
61		<service_fmri value='svc:/milestone/multi-user:default' />
62		<service_fmri value='svc:/system/fmd:default' />
63		<service_fmri value='svc:/application/management/net-snmp:default' />
64	</dependency>
65
66	<exec_method
67	    type='method'
68	    name='start'
69	    exec='/usr/lib/fm/notify/snmp-notify'
70	    timeout_seconds='0' />
71
72	<exec_method
73	    type='method'
74	    name='stop'
75	    exec=':kill'
76	    timeout_seconds='60' />
77
78        <exec_method
79                type='method'
80                name='refresh'
81                exec=':kill -HUP'
82                timeout_seconds='30'>
83                <method_context>
84                        <method_credential user='root' group='root' />
85                </method_context>
86        </exec_method>
87
88	<property_group name="general" type="framework">
89		<propval name='action_authorization' type='astring'
90                    value='solaris.smf.manage.snmp-notify' />
91		<propval name='value_authorization' type='astring'
92                    value='solaris.smf.value.snmp-notify' />
93	</property_group>
94
95	<property_group name="config" type="application">
96		<propval name="debug" type="boolean" value="false"/>
97		<propval name="rootdir" type="astring" value="/"/>
98		<propval name='action_authorization' type='astring'
99                    value='solaris.smf.manage.snmp-notify' />
100		<propval name='value_authorization' type='astring'
101                    value='solaris.smf.value.snmp-notify' />
102	</property_group>
103
104	<stability value='Evolving' />
105
106	<template>
107	    	<common_name>
108		    	<loctext xml:lang='C'>
109				Solaris SNMP Event Notification Agent
110			</loctext>
111		</common_name>
112		<documentation>
113			<manpage title='snmp-notify' section='1M'
114				manpath='/usr/share/man' />
115		</documentation>
116		<pg_pattern name='config' type='application' target='this'
117		    required='false'>
118			<prop_pattern name='debug' type='boolean'
119			    required='false'>
120				<description>
121					<loctext xml:lang='C'>
122When set to true, smtp-notify will spool debug messages to /var/fm/notify/snmp-notify.log
123					</loctext>
124				</description>
125				<visibility value='readwrite'/>
126				<cardinality min='1' max='1'/>
127			</prop_pattern>
128			<prop_pattern name='rootdir' type='astring'
129			    required='false'>
130				<description>
131					<loctext xml:lang='C'>
132The root directory that will be used for all pathnames evaluated by snmp-notify
133					</loctext>
134				</description>
135				<visibility value='readwrite'/>
136				<cardinality min='1' max='1'/>
137			</prop_pattern>
138		</pg_pattern>
139	</template>
140</service>
141
142</service_bundle>
143