Project

General

Profile

Feature #4434 » manifest-smtp-notify.xml

Predrag Zečević, 2013-12-27 08:21 AM

 
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
   <dependency
66
       name='mail-clients'
67
       type='service'
68
       grouping='optional_all'
69
       restart_on='none'>
70
      <service_fmri value='svc:/site/postfix:default' />
71
      <service_fmri value='svc:/network/sendmail-client:default' />
72
   </dependency>
73

    
74
   <exec_method
75
       type='method'
76
       name='start'
77
       exec='/usr/lib/fm/notify/smtp-notify'
78
       timeout_seconds='0' />
79

    
80
   <exec_method
81
       type='method'
82
       name='stop'
83
       exec=':kill'
84
       timeout_seconds='60' />
85

    
86
        <exec_method
87
                type='method'
88
                name='refresh'
89
                exec=':kill -HUP'
90
                timeout_seconds='30'>
91
                <method_context>
92
                        <method_credential user='root' group='root' />
93
                </method_context>
94
        </exec_method>
95

    
96
   <property_group name="general" type="framework">
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
   <property_group name="config" type="application">
104
      <propval name="debug" type="boolean" value="false"/>
105
      <propval name="rootdir" type="astring" value="/"/>
106
      <propval name='action_authorization' type='astring'
107
                    value='solaris.smf.manage.smtp-notify' />
108
      <propval name='value_authorization' type='astring'
109
                    value='solaris.smf.value.smtp-notify' />
110
   </property_group>
111

    
112
   <stability value='Evolving' />
113

    
114
   <template>
115
          <common_name>
116
             <loctext xml:lang='C'>
117
            Solaris Email Event Notification Agent
118
         </loctext>
119
      </common_name>
120
      <documentation>
121
         <manpage title='smtp-notify' section='1M'
122
            manpath='/usr/share/man' />
123
      </documentation>
124
      <pg_pattern name='config' type='application' target='this'
125
          required='false'>
126
         <prop_pattern name='debug' type='boolean'
127
             required='false'>
128
            <description>
129
               <loctext xml:lang='C'>
130
When set to true, smtp-notify will spool debug messages to /var/fm/notify/smtp-notify.log
131
               </loctext>
132
            </description>
133
            <visibility value='readwrite'/>
134
            <cardinality min='1' max='1'/>
135
         </prop_pattern>
136
         <prop_pattern name='rootdir' type='astring'
137
             required='false'>
138
            <description>
139
               <loctext xml:lang='C'>
140
The root directory that will be used for all pathnames evaluated by smtp-notify
141
               </loctext>
142
            </description>
143
            <visibility value='readwrite'/>
144
            <cardinality min='1' max='1'/>
145
         </prop_pattern>
146
      </pg_pattern>    
147
   </template>
148
</service>
149

    
150
</service_bundle>
    (1-1/1)