xref: /titanic_44/usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.xml (revision f4427914317470f516ca69daaed90f7efb3d76dc)
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/smtp-notify'
35	type='service'
36	version='1'>
37
38	<create_default_instance enabled='true' />
39
40	<!--
41	 Just one instance of smtp-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/smtp-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	</dependency>
64
65	<exec_method
66	    type='method'
67	    name='start'
68	    exec='/usr/lib/fm/notify/smtp-notify'
69	    timeout_seconds='0' />
70
71	<exec_method
72	    type='method'
73	    name='stop'
74	    exec=':kill'
75	    timeout_seconds='60' />
76
77        <exec_method
78                type='method'
79                name='refresh'
80                exec=':kill -HUP'
81                timeout_seconds='30'>
82                <method_context>
83                        <method_credential user='root' group='root' />
84                </method_context>
85        </exec_method>
86
87	<property_group name="general" type="framework">
88		<propval name='action_authorization' type='astring'
89                    value='solaris.smf.manage.smtp-notify' />
90		<propval name='value_authorization' type='astring'
91                    value='solaris.smf.value.smtp-notify' />
92	</property_group>
93
94	<property_group name="config" type="application">
95		<propval name="debug" type="boolean" value="false"/>
96		<propval name="rootdir" type="astring" value="/"/>
97		<propval name='action_authorization' type='astring'
98                    value='solaris.smf.manage.smtp-notify' />
99		<propval name='value_authorization' type='astring'
100                    value='solaris.smf.value.smtp-notify' />
101	</property_group>
102
103	<stability value='Evolving' />
104
105	<template>
106	    	<common_name>
107		    	<loctext xml:lang='C'>
108				Solaris Email Event Notification Agent
109			</loctext>
110		</common_name>
111		<documentation>
112			<manpage title='smtp-notify' section='1M'
113				manpath='/usr/share/man' />
114		</documentation>
115		<pg_pattern name='config' type='application' target='this'
116		    required='false'>
117			<prop_pattern name='debug' type='boolean'
118			    required='false'>
119				<description>
120					<loctext xml:lang='C'>
121When set to true, smtp-notify will spool debug messages to /var/fm/notify/smtp-notify.log
122					</loctext>
123				</description>
124				<visibility value='readwrite'/>
125				<cardinality min='1' max='1'/>
126			</prop_pattern>
127			<prop_pattern name='rootdir' type='astring'
128			    required='false'>
129				<description>
130					<loctext xml:lang='C'>
131The root directory that will be used for all pathnames evaluated by smtp-notify
132					</loctext>
133				</description>
134				<visibility value='readwrite'/>
135				<cardinality min='1' max='1'/>
136			</prop_pattern>
137		</pg_pattern>
138	</template>
139</service>
140
141</service_bundle>
142