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, 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 |
|
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. |
|
29 |
|
30 Service manifest for the net-snmp daemon |
|
31 --> |
|
32 |
|
33 <service_bundle type='manifest' name='SUNWnet-snmp-core:net-snmp'> |
|
34 |
|
35 <service |
|
36 name='application/management/net-snmp' |
|
37 type='service' |
|
38 version='1'> |
|
39 |
|
40 <create_default_instance enabled='false' /> |
|
41 |
|
42 <single_instance /> |
|
43 |
|
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> |
|
51 |
|
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> |
|
60 |
|
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> |
|
68 |
|
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> |
|
76 |
|
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> |
|
84 |
|
85 <dependency name='cryptosvc' |
|
86 grouping='require_all' |
|
87 restart_on='restart' |
|
88 type='service'> |
|
89 <service_fmri value='svc:/system/cryptosvc' /> |
|
90 </dependency> |
|
91 |
|
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> |
|
99 |
|
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> |
|
108 |
|
109 <exec_method |
|
110 type='method' |
|
111 name='start' |
|
112 exec='/lib/svc/method/svc-net-snmp' |
|
113 timeout_seconds='60'> |
|
114 </exec_method> |
|
115 |
|
116 <exec_method |
|
117 type='method' |
|
118 name='stop' |
|
119 exec=':kill' |
|
120 timeout_seconds='60'> |
|
121 </exec_method> |
|
122 |
|
123 <exec_method |
|
124 type='method' |
|
125 name='refresh' |
|
126 exec=':kill -HUP' |
|
127 timeout_seconds='60'> |
|
128 </exec_method> |
|
129 |
|
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 <propval name='arch_type' type='integer' value='0' /> |
|
137 </property_group> |
|
138 |
|
139 <stability value='Unstable' /> |
|
140 |
|
141 <template> |
|
142 <common_name> |
|
143 <loctext xml:lang='C'> |
|
144 net-snmp SNMP daemon |
|
145 </loctext> |
|
146 </common_name> |
|
147 |
|
148 <documentation> |
|
149 <manpage title='snmpd' section='8' |
|
150 manpath='/usr/share/man/' /> |
|
151 </documentation> |
|
152 |
|
153 </template> |
|
154 |
|
155 </service> |
|
156 |
|
157 </service_bundle> |
|