xref: /illumos-gate/usr/src/cmd/power/power.xml (revision bbf21555)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
57c478bd9Sstevel@tonic-gate Use is subject to license terms.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate CDDL HEADER START
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
107c478bd9Sstevel@tonic-gate Common Development and Distribution License, Version 1.0 only
117c478bd9Sstevel@tonic-gate (the "License").  You may not use this file except in compliance
127c478bd9Sstevel@tonic-gate with the License.
137c478bd9Sstevel@tonic-gate
147c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
157c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
167c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
177c478bd9Sstevel@tonic-gate and limitations under the License.
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
207c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
217c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
227c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
237c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate CDDL HEADER END
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate    NOTE:  This service manifest is not editable; its contents will
287c478bd9Sstevel@tonic-gate    be overwritten by package or patch operations, including
297c478bd9Sstevel@tonic-gate    operating system upgrade.  Make customizations in a different
307c478bd9Sstevel@tonic-gate    file.
317c478bd9Sstevel@tonic-gate-->
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWpmr:power'>
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate<service
367c478bd9Sstevel@tonic-gate	name='system/power'
377c478bd9Sstevel@tonic-gate	type='service'
387c478bd9Sstevel@tonic-gate	version='1'>
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate	<create_default_instance enabled='false' />
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate	<single_instance />
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate	<dependency
457c478bd9Sstevel@tonic-gate		name='usr'
467c478bd9Sstevel@tonic-gate		type='service'
477c478bd9Sstevel@tonic-gate		grouping='require_all'
487c478bd9Sstevel@tonic-gate		restart_on='none'>
497c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/minimal' />
507c478bd9Sstevel@tonic-gate	</dependency>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate	<dependent
537c478bd9Sstevel@tonic-gate		name='power_multi-user'
547c478bd9Sstevel@tonic-gate		grouping='optional_all'
557c478bd9Sstevel@tonic-gate		restart_on='none'>
567c478bd9Sstevel@tonic-gate			<service_fmri value='svc:/milestone/multi-user' />
577c478bd9Sstevel@tonic-gate	</dependent>
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate	<exec_method
607c478bd9Sstevel@tonic-gate		type='method'
617c478bd9Sstevel@tonic-gate		name='start'
627c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-power %m'
637c478bd9Sstevel@tonic-gate		timeout_seconds='60'>
647c478bd9Sstevel@tonic-gate		<method_context>
657c478bd9Sstevel@tonic-gate			<method_credential user='root' group='root'/>
667c478bd9Sstevel@tonic-gate		</method_context>
677c478bd9Sstevel@tonic-gate	</exec_method>
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gate	<exec_method
707c478bd9Sstevel@tonic-gate		type='method'
717c478bd9Sstevel@tonic-gate		name='stop'
727c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-power %m'
737c478bd9Sstevel@tonic-gate		timeout_seconds='60'>
747c478bd9Sstevel@tonic-gate		<method_context>
757c478bd9Sstevel@tonic-gate			<method_credential user='root' group='root'/>
767c478bd9Sstevel@tonic-gate		</method_context>
777c478bd9Sstevel@tonic-gate	</exec_method>
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate	<property_group name='startd' type='framework'>
807c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring'
817c478bd9Sstevel@tonic-gate			value='transient' />
827c478bd9Sstevel@tonic-gate	</property_group>
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate	<property_group name='general' type='framework'>
857c478bd9Sstevel@tonic-gate		<!-- to start stop power daemon -->
867c478bd9Sstevel@tonic-gate		<propval name='action_authorization' type='astring'
877c478bd9Sstevel@tonic-gate			value='solaris.smf.manage.power' />
887c478bd9Sstevel@tonic-gate	</property_group>
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate	<template>
947c478bd9Sstevel@tonic-gate		<common_name>
957c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
967c478bd9Sstevel@tonic-gate			power management
977c478bd9Sstevel@tonic-gate			</loctext>
987c478bd9Sstevel@tonic-gate		</common_name>
997c478bd9Sstevel@tonic-gate		<documentation>
100*bbf21555SRichard Lowe			<manpage title='powerd' section='8' manpath='/usr/share/man' />
101*bbf21555SRichard Lowe			<manpage title='pmconfig' section='8' manpath='/usr/share/man' />
102*bbf21555SRichard Lowe			<manpage title='dtpower' section='8' manpath='/usr/share/man' />
103*bbf21555SRichard Lowe			<manpage title='power.conf' section='5' manpath='/usr/share/man' />
1047c478bd9Sstevel@tonic-gate		</documentation>
1057c478bd9Sstevel@tonic-gate	</template>
1067c478bd9Sstevel@tonic-gate</service>
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate</service_bundle>
109