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