xref: /onnv-gate/usr/src/cmd/fps/fpsd/fpsd.xml (revision 7346:8a16b5b71337)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	NOTE:  This service manifest is not editable; its contents will
27	be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30-->
31
32<service_bundle type='manifest' name='SUNWfsr:fpsd'>
33
34<service
35	name='system/fpsd'
36	type='service'
37	version='1'>
38
39	<create_default_instance enabled='true' />
40
41	<single_instance />
42
43	<!--
44	  FP Scrubber Dependencies, Part 1
45
46	    A dependency on syslogd as logging is done through it.
47	-->
48	<dependency
49	    name='syslogd'
50	    grouping='require_all'
51	    restart_on='none'
52	    type='service'>
53		<service_fmri value='svc:/system/system-log:default' />
54	</dependency>
55
56	<!--
57	  FP Scrubber Dependencies, Part 2
58
59	    fpsd should be started after fmd is running.
60	-->
61	<dependency
62	    name='fmd'
63	    grouping='require_all'
64	    restart_on='none'
65	    type='service'>
66		<service_fmri value='svc:/system/fmd' />
67	</dependency>
68
69
70	<exec_method
71	    type='method'
72	    name='start'
73	    exec='/usr/lib/fps/fpsd'
74	    timeout_seconds='600'>
75            <method_context>
76                        <method_credential user='root' group='root' />
77            </method_context>
78        </exec_method>
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='60' />
91
92	<property_group
93            name='config'
94            type='application'>
95                <stability value='Evolving' />
96
97            <propval name='interval' type='integer' value='' />
98	    <propval name='exclude_cpus' type='astring' value='' />
99        </property_group>
100
101	<stability value='Evolving' />
102
103	<template>
104	    	<common_name>
105		    	<loctext xml:lang='C'>
106				FP Scrubber - Online Floating Point Unit Test
107			</loctext>
108		</common_name>
109
110		<documentation>
111		    	<manpage
112			    title='fpsd'
113			    section='1M'
114			    manpath='/usr/share/man' />
115		</documentation>
116	</template>
117</service>
118
119</service_bundle>
120