Update Time-Piece Perl distribution to 1.35
[oi-userland.git] / components / sysutils / freeipmi / files / bmc-watchdog.xml
blob877419e7674c33ea1dc47d8739cce686c123f24e
1 <?xml version="1.0"?>
2 <!--
3 CDDL HEADER START
5 The contents of this file are subject to the terms of the
6 Common Development and Distribution License (the "License").
7 You may not use this file except in compliance with the License.
9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 or http://www.opensolaris.org/os/licensing.
11 See the License for the specific language governing permissions
12 and limitations under the License.
14 When distributing Covered Code, include this CDDL HEADER in each
15 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 If applicable, add the following below this CDDL HEADER, with the
17 fields enclosed by brackets "[]" replaced with your own identifying
18 information: Portions Copyright [yyyy] [name of copyright owner]
20 CDDL HEADER END
21 -->
23 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
24 <!--
25         Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
26         Use is subject to license terms.
27         # Copyright 2016 Jim Klimov
29 #       ident   "@(#)bmc-watchdog.xml   1.1     09/08/14 SMI"
30 -->
32 <service_bundle type='manifest' name='SUNWfreeipmir:bmc-watchdog'>
34         <service name='system/freeipmi/bmc-watchdog' type='service' version='1'>
36         <!--
37           Configure a default instance for the service since it doesn't
38           require additional configuration intervention before it starts.
39         -->
40                 <create_default_instance enabled='false' />
42         <!--
43           Wait for all usr filesystem to be mounted. bmc-watchdog is
44           located in /usr/sbin.
45         -->
46                 <dependency
47                 name='filesystem-usr'
48                 grouping='require_all'
49                 restart_on='none'
50                 type='service'>
51                         <service_fmri
52                 value='svc:/system/filesystem/usr:default'/>
53                 </dependency>
55         <!--
56           Wait for syslog to be started in order to write system
57           messages from the kernel.
58         -->
59                 <dependency
60                 name='syslog'
61                 grouping='require_all'
62                 restart_on='none'
63                 type='service'>
64                         <service_fmri
65                 value='svc:/system/system-log:default'/>
66                 </dependency>
68         <!--
69           The bmc-watchdog start/stop methods.
70         -->
72                 <exec_method
73                 type='method'
74                 name='start'
75                 exec='/lib/svc/method/svc-bmc-watchdog %m'
76                 timeout_seconds='60'/>
78                 <exec_method
79                 type='method'
80                 name='stop'
81                 exec=':kill'
82                 timeout_seconds='60' />
84                 <property_group name='startd' type='framework'>
85                 <!--
86                   Sub-process core dumps and external kill signals are not
87                   considered errors, so the service should be restarted.
88                         -->
89                         <propval name='ignore_error' type='astring'
90                          value='core,signal' />
91                 </property_group>
93                 <property_group name='config' type='application' >
94                         <propval name='options' type='astring' value='-u 4 -p 0 -a 1 -F -P -L -S -O -i 900 -e 60'/>
95 <!-- Enable scripted looping if the BMC daemon fails while the BMC Watchdog is
96   in fact started (errata applied to at least some Sun Fire X4*** models)? -->
97                         <propval name='force-looping' type='boolean' value='false'/>
98                         <propval name='bmcdev-required' type='boolean' value='true'/>
99                         <propval name='bmcdev' type='astring' value='/dev/ipmi0'/>
100 <!-- Legacy default (with proprietary driver): -->
101 <!--
102                         <propval name='bmcdev' type='astring' value='/dev/bmc'/>
104                 </property_group>
106                 <stability value='Unstable' />
108                 <template>
109                         <common_name>
110                                 <loctext xml:lang='C'>
111                                 Baseboard Management Controller (BMC) watchdog timer daemon
112                                 </loctext>
113                         </common_name>
114                         <documentation>
115                                 <manpage title='bmc-watchdog' section='8'
116                                 manpath='/usr/share/man' />
117                         </documentation>
118                 </template>
119         </service>
121 </service_bundle>