component(developer/golang-123): Add Component
[oi-userland.git] / components / sysutils / net-snmp / sun / net-snmp.xml
blob2517733bd843d5de86a46a7b74a6bd6bff900e58
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4     CDDL HEADER START
5    
6     The contents of this file are subject to the terms of the
7     Common Development and Distribution License (the "License").
8     You may not use this file except in compliance with the License.
9    
10     You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11     or http://www.opensolaris.org/os/licensing.
12     See the License for the specific language governing permissions
13     and limitations under the License.
14    
15     When distributing Covered Code, include this CDDL HEADER in each
16     file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17     If applicable, add the following below this CDDL HEADER, with the
18     fields enclosed by brackets "[]" replaced with your own identifying
19     information: Portions Copyright [yyyy] [name of copyright owner]
20    
21     CDDL HEADER END
22    
23     Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
25     NOTE:  This service description is not editable; its contents
26     may be overwritten by package or patch operations, including
27     operating system upgrade.  Make customizations in a different
28     file.
30     Service manifest for the net-snmp daemon
31 -->
33 <service_bundle type='manifest' name='SUNWnet-snmp-core:net-snmp'>
35 <service
36         name='application/management/net-snmp'
37         type='service'
38         version='1'>
40         <create_default_instance enabled='false' />
42         <single_instance />
44         <dependency
45                 name='multi-user'
46                 grouping='require_all'
47                 restart_on='none'
48                 type='service'> 
49                 <service_fmri value='svc:/milestone/multi-user' />
50         </dependency>
52         <!-- Need / & /usr filesystems mounted, /var mounted read/write -->
53         <dependency
54                 name='fs-local'
55                 type='service'
56                 grouping='require_all'
57                 restart_on='none'>
58                         <service_fmri value='svc:/system/filesystem/local' />
59         </dependency>
61         <dependency
62                 name='name-services'
63                 grouping='optional_all'
64                 restart_on='none'
65                 type='service'>
66                 <service_fmri value='svc:/milestone/name-services' />
67         </dependency>
69         <dependency
70                 name='system-log'
71                 grouping='optional_all'
72                 restart_on='none'
73                 type='service'>
74                 <service_fmri value='svc:/system/system-log' />
75         </dependency>
77         <dependency
78                 name='rstat'
79                 grouping='optional_all'
80                 restart_on='none'
81                 type='service'>
82                 <service_fmri value='svc:/network/rpc/rstat' />
83         </dependency>
85         <dependency name='cryptosvc'
86                 grouping='require_all'
87                 restart_on='restart'
88                 type='service'>
89                         <service_fmri value='svc:/system/cryptosvc' />
90         </dependency>
92         <dependency
93                 name='network'
94                 grouping='require_all'
95                 restart_on='restart'
96                 type='service'>
97                         <service_fmri value='svc:/milestone/network' />
98         </dependency>
100         <dependency
101                 name='config-file'
102                 grouping='require_all'
103                 restart_on='refresh'
104                 type='path'>
105                         <service_fmri 
106                            value='file://localhost/etc/net-snmp/snmp/snmpd.conf' />
107         </dependency>
109         <exec_method
110                 type='method'
111                 name='start'
112                 exec='/lib/svc/method/svc-net-snmp'
113                 timeout_seconds='60'>
114         </exec_method>
116         <exec_method
117        type='method'
118            name='stop'
119            exec=':kill'
120            timeout_seconds='60'>
121         </exec_method>
123         <exec_method
124            type='method'
125            name='refresh'
126            exec=':kill -HUP'
127            timeout_seconds='60'>
128         </exec_method>
130         <property_group name='general' type='framework'>
131                 <!-- to start/stop net-snmp -->
132                 <propval name='action_authorization' type='astring'
133                         value='solaris.smf.manage.net-snmp' />
134                 <propval name='value_authorization' type='astring'
135                         value='solaris.smf.manage.net-snmp' />
136         </property_group>
137         
138         <stability value='Unstable' />
140         <template>
141                 <common_name>
142                         <loctext xml:lang='C'>
143                         net-snmp SNMP daemon
144                         </loctext>
145                 </common_name>
147                 <documentation>
148                         <manpage title='snmpd' section='8' 
149                             manpath='/usr/share/man/' />
150                 </documentation>
152         </template>
154 </service>
156 </service_bundle>