xref: /illumos-gate/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.xml (revision 82ae1648ab152f127ab6c9a6bdbea9e0a589a488)
1f6e214c7SGavin Maltby<?xml version="1.0"?>
2f6e214c7SGavin Maltby<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3f6e214c7SGavin Maltby<!--
4f6e214c7SGavin Maltby Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
5f6e214c7SGavin Maltby
6f6e214c7SGavin Maltby CDDL HEADER START
7f6e214c7SGavin Maltby
8f6e214c7SGavin Maltby The contents of this file are subject to the terms of the
9f6e214c7SGavin Maltby Common Development and Distribution License (the "License").
10f6e214c7SGavin Maltby You may not use this file except in compliance with the License.
11f6e214c7SGavin Maltby
12f6e214c7SGavin Maltby You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13f6e214c7SGavin Maltby or http://www.opensolaris.org/os/licensing.
14f6e214c7SGavin Maltby See the License for the specific language governing permissions
15f6e214c7SGavin Maltby and limitations under the License.
16f6e214c7SGavin Maltby
17f6e214c7SGavin Maltby When distributing Covered Code, include this CDDL HEADER in each
18f6e214c7SGavin Maltby file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19f6e214c7SGavin Maltby If applicable, add the following below this CDDL HEADER, with the
20f6e214c7SGavin Maltby fields enclosed by brackets "[]" replaced with your own identifying
21f6e214c7SGavin Maltby information: Portions Copyright [yyyy] [name of copyright owner]
22f6e214c7SGavin Maltby
23f6e214c7SGavin Maltby CDDL HEADER END
24f6e214c7SGavin Maltby
25f6e214c7SGavin Maltby	NOTE:  This service manifest is not editable; its contents will
26f6e214c7SGavin Maltby	be overwritten by package or patch operations, including
27f6e214c7SGavin Maltby	operating system upgrade.  Make customizations in a different
28f6e214c7SGavin Maltby	file.
29f6e214c7SGavin Maltby-->
30f6e214c7SGavin Maltby
31f6e214c7SGavin Maltby<service_bundle type='manifest' name='SUNWckr:fmd'>
32f6e214c7SGavin Maltby
33f6e214c7SGavin Maltby<service
34f6e214c7SGavin Maltby	name='system/fm/snmp-notify'
35f6e214c7SGavin Maltby	type='service'
36f6e214c7SGavin Maltby	version='1'>
37f6e214c7SGavin Maltby
38f6e214c7SGavin Maltby	<create_default_instance enabled='false' />
39f6e214c7SGavin Maltby
40f6e214c7SGavin Maltby	<!--
41f6e214c7SGavin Maltby	 Just one instance of snmp-notify should be running in any OS instance.
42f6e214c7SGavin Maltby	-->
43f6e214c7SGavin Maltby	<single_instance />
44f6e214c7SGavin Maltby
45f6e214c7SGavin Maltby	<!--
46f6e214c7SGavin Maltby	    Add a dependency on SUNWfmd being installed
47f6e214c7SGavin Maltby	-->
48f6e214c7SGavin Maltby	<dependency
49f6e214c7SGavin Maltby	    name='SUNWfmd'
50f6e214c7SGavin Maltby	    grouping='require_all'
51f6e214c7SGavin Maltby	    restart_on='none'
52f6e214c7SGavin Maltby	    type='path'>
53f6e214c7SGavin Maltby		<service_fmri value='file://localhost/usr/lib/fm/notify/snmp-notify' />
54f6e214c7SGavin Maltby	</dependency>
55f6e214c7SGavin Maltby
56f6e214c7SGavin Maltby	<dependency
57f6e214c7SGavin Maltby	    name='startup_req'
58f6e214c7SGavin Maltby	    grouping='require_all'
59f6e214c7SGavin Maltby	    restart_on='none'
60f6e214c7SGavin Maltby	    type='service'>
61f6e214c7SGavin Maltby		<service_fmri value='svc:/milestone/multi-user:default' />
62f6e214c7SGavin Maltby		<service_fmri value='svc:/system/fmd:default' />
63f6e214c7SGavin Maltby		<service_fmri value='svc:/application/management/net-snmp:default' />
64f6e214c7SGavin Maltby	</dependency>
65f6e214c7SGavin Maltby
66f6e214c7SGavin Maltby	<exec_method
67f6e214c7SGavin Maltby	    type='method'
68f6e214c7SGavin Maltby	    name='start'
69f6e214c7SGavin Maltby	    exec='/usr/lib/fm/notify/snmp-notify'
70f6e214c7SGavin Maltby	    timeout_seconds='0' />
71f6e214c7SGavin Maltby
72f6e214c7SGavin Maltby	<exec_method
73f6e214c7SGavin Maltby	    type='method'
74f6e214c7SGavin Maltby	    name='stop'
75f6e214c7SGavin Maltby	    exec=':kill'
76f6e214c7SGavin Maltby	    timeout_seconds='60' />
77f6e214c7SGavin Maltby
78f6e214c7SGavin Maltby        <exec_method
79f6e214c7SGavin Maltby                type='method'
80f6e214c7SGavin Maltby                name='refresh'
81f6e214c7SGavin Maltby                exec=':kill -HUP'
82f6e214c7SGavin Maltby                timeout_seconds='30'>
83*82ae1648SAndy Fiddaman                <method_context working_directory='/'>
84f6e214c7SGavin Maltby                        <method_credential user='root' group='root' />
85f6e214c7SGavin Maltby                </method_context>
86f6e214c7SGavin Maltby        </exec_method>
87f6e214c7SGavin Maltby
88f6e214c7SGavin Maltby	<property_group name="general" type="framework">
89f6e214c7SGavin Maltby		<propval name='action_authorization' type='astring'
90f6e214c7SGavin Maltby                    value='solaris.smf.manage.snmp-notify' />
91f6e214c7SGavin Maltby		<propval name='value_authorization' type='astring'
92f6e214c7SGavin Maltby                    value='solaris.smf.value.snmp-notify' />
93f6e214c7SGavin Maltby	</property_group>
94f6e214c7SGavin Maltby
95f6e214c7SGavin Maltby	<property_group name="config" type="application">
96f6e214c7SGavin Maltby		<propval name="debug" type="boolean" value="false"/>
97f6e214c7SGavin Maltby		<propval name="rootdir" type="astring" value="/"/>
98f6e214c7SGavin Maltby		<propval name='action_authorization' type='astring'
99f6e214c7SGavin Maltby                    value='solaris.smf.manage.snmp-notify' />
100f6e214c7SGavin Maltby		<propval name='value_authorization' type='astring'
101f6e214c7SGavin Maltby                    value='solaris.smf.value.snmp-notify' />
102f6e214c7SGavin Maltby	</property_group>
103f6e214c7SGavin Maltby
104f6e214c7SGavin Maltby	<stability value='Evolving' />
105f6e214c7SGavin Maltby
106f6e214c7SGavin Maltby	<template>
107f6e214c7SGavin Maltby		<common_name>
108f6e214c7SGavin Maltby			<loctext xml:lang='C'>
109f6e214c7SGavin Maltby				Solaris SNMP Event Notification Agent
110f6e214c7SGavin Maltby			</loctext>
111f6e214c7SGavin Maltby		</common_name>
112f6e214c7SGavin Maltby		<documentation>
113bbf21555SRichard Lowe			<manpage title='snmp-notify' section='8'
114f6e214c7SGavin Maltby				manpath='/usr/share/man' />
115f6e214c7SGavin Maltby		</documentation>
116f6e214c7SGavin Maltby		<pg_pattern name='config' type='application' target='this'
117f6e214c7SGavin Maltby		    required='false'>
118f6e214c7SGavin Maltby			<prop_pattern name='debug' type='boolean'
119f6e214c7SGavin Maltby			    required='false'>
120f6e214c7SGavin Maltby				<description>
121f6e214c7SGavin Maltby					<loctext xml:lang='C'>
122f6e214c7SGavin MaltbyWhen set to true, smtp-notify will spool debug messages to /var/fm/notify/snmp-notify.log
123f6e214c7SGavin Maltby					</loctext>
124f6e214c7SGavin Maltby				</description>
125f6e214c7SGavin Maltby				<visibility value='readwrite'/>
126f6e214c7SGavin Maltby				<cardinality min='1' max='1'/>
127f6e214c7SGavin Maltby			</prop_pattern>
128f6e214c7SGavin Maltby			<prop_pattern name='rootdir' type='astring'
129f6e214c7SGavin Maltby			    required='false'>
130f6e214c7SGavin Maltby				<description>
131f6e214c7SGavin Maltby					<loctext xml:lang='C'>
132f6e214c7SGavin MaltbyThe root directory that will be used for all pathnames evaluated by snmp-notify
133f6e214c7SGavin Maltby					</loctext>
134f6e214c7SGavin Maltby				</description>
135f6e214c7SGavin Maltby				<visibility value='readwrite'/>
136f6e214c7SGavin Maltby				<cardinality min='1' max='1'/>
137f6e214c7SGavin Maltby			</prop_pattern>
138f6e214c7SGavin Maltby		</pg_pattern>
139f6e214c7SGavin Maltby	</template>
140f6e214c7SGavin Maltby</service>
141f6e214c7SGavin Maltby
142f6e214c7SGavin Maltby</service_bundle>
143