xref: /illumos-gate/usr/src/cmd/dispadmin/scheduler.xml (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
1d98ed3d7Srm88369<?xml version="1.0"?>
2d98ed3d7Srm88369<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3d98ed3d7Srm88369<!--
4d98ed3d7Srm88369 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5d98ed3d7Srm88369 Use is subject to license terms.
6d98ed3d7Srm88369
7d98ed3d7Srm88369 CDDL HEADER START
8d98ed3d7Srm88369
9d98ed3d7Srm88369 The contents of this file are subject to the terms of the
10d98ed3d7Srm88369 Common Development and Distribution License, Version 1.0 only
11d98ed3d7Srm88369 (the "License").  You may not use this file except in compliance
12d98ed3d7Srm88369 with the License.
13d98ed3d7Srm88369
14d98ed3d7Srm88369 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15d98ed3d7Srm88369 or http://www.opensolaris.org/os/licensing.
16d98ed3d7Srm88369 See the License for the specific language governing permissions
17d98ed3d7Srm88369 and limitations under the License.
18d98ed3d7Srm88369
19d98ed3d7Srm88369 When distributing Covered Code, include this CDDL HEADER in each
20d98ed3d7Srm88369 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21d98ed3d7Srm88369 If applicable, add the following below this CDDL HEADER, with the
22d98ed3d7Srm88369 fields enclosed by brackets "[]" replaced with your own identifying
23d98ed3d7Srm88369 information: Portions Copyright [yyyy] [name of copyright owner]
24d98ed3d7Srm88369
25d98ed3d7Srm88369 CDDL HEADER END
26d98ed3d7Srm88369
27d98ed3d7Srm88369	NOTE:  This service manifest is not editable; its contents will
28d98ed3d7Srm88369	be overwritten by package or patch operations, including
29d98ed3d7Srm88369	operating system upgrade.  Make customizations in a different
30d98ed3d7Srm88369	file.
31d98ed3d7Srm88369
32d98ed3d7Srm88369	Service manifest for system/scheduler.
33d98ed3d7Srm88369-->
34d98ed3d7Srm88369
35d98ed3d7Srm88369<service_bundle type='manifest' name='SUNWckr:scheduler'>
36d98ed3d7Srm88369
37d98ed3d7Srm88369<service
38d98ed3d7Srm88369	name='system/scheduler'
39d98ed3d7Srm88369	type='service'
40d98ed3d7Srm88369	version='1'>
41d98ed3d7Srm88369
42d98ed3d7Srm88369	<create_default_instance enabled='false' />
43d98ed3d7Srm88369
44d98ed3d7Srm88369	<single_instance />
45d98ed3d7Srm88369
46d98ed3d7Srm88369	<!--
47d98ed3d7Srm88369		The scheduler service changes the default scheduling class from
48d98ed3d7Srm88369		/etc/dispadmin.conf. It therefore must have / (root) and /usr
49d98ed3d7Srm88369		mounted readable. svc:/system/filesystem/usr (which remounts /
50d98ed3d7Srm88369		and /usr read-writable) is dependent on svc:/system/scheduler to
51d98ed3d7Srm88369		ensure that subsequent services can use their own scheduling
52d98ed3d7Srm88369		class.
53d98ed3d7Srm88369	-->
54d98ed3d7Srm88369
55d98ed3d7Srm88369	<dependency
56d98ed3d7Srm88369		name='root'
57d98ed3d7Srm88369		type='service'
58d98ed3d7Srm88369		grouping='require_all'
59d98ed3d7Srm88369		restart_on='none'>
60d98ed3d7Srm88369		<service_fmri value='svc:/system/filesystem/root' />
61d98ed3d7Srm88369	</dependency>
62d98ed3d7Srm88369
63d98ed3d7Srm88369	<dependent
64d98ed3d7Srm88369		name='scheduler_usr'
65d98ed3d7Srm88369		grouping='optional_all'
66d98ed3d7Srm88369		restart_on='none'>
67d98ed3d7Srm88369		<service_fmri value='svc:/system/filesystem/usr' />
68d98ed3d7Srm88369	</dependent>
69d98ed3d7Srm88369
70d98ed3d7Srm88369	<exec_method
71d98ed3d7Srm88369		type='method'
72d98ed3d7Srm88369		name='start'
73d98ed3d7Srm88369		exec='/lib/svc/method/svc-scheduler'
74d98ed3d7Srm88369		timeout_seconds='30' />
75d98ed3d7Srm88369
76d98ed3d7Srm88369	<exec_method
77d98ed3d7Srm88369		type='method'
78d98ed3d7Srm88369		name='stop'
79d98ed3d7Srm88369		exec=':true'
80d98ed3d7Srm88369		timeout_seconds='30' />
81d98ed3d7Srm88369
82d98ed3d7Srm88369	<property_group name='startd' type='framework'>
83d98ed3d7Srm88369		<propval name='duration' type='astring' value='transient' />
84d98ed3d7Srm88369	</property_group>
85d98ed3d7Srm88369
86d98ed3d7Srm88369	<stability value='Unstable' />
87d98ed3d7Srm88369
88d98ed3d7Srm88369	<template>
89d98ed3d7Srm88369		<common_name>
90d98ed3d7Srm88369			<loctext xml:lang='C'>
91d98ed3d7Srm88369				default scheduling class configuration
92d98ed3d7Srm88369			</loctext>
93d98ed3d7Srm88369		</common_name>
94d98ed3d7Srm88369
95d98ed3d7Srm88369		<documentation>
96d98ed3d7Srm88369			<manpage
97d98ed3d7Srm88369				title='dispadmin'
98*bbf21555SRichard Lowe				section='8'
99d98ed3d7Srm88369				manpath='/usr/share/man' />
100d98ed3d7Srm88369		</documentation>
101d98ed3d7Srm88369	</template>
102d98ed3d7Srm88369</service>
103d98ed3d7Srm88369
104d98ed3d7Srm88369</service_bundle>
105