components/cups/Solaris/service-selector.xml
changeset 220 3ff562b51ff5
equal deleted inserted replaced
219:22d9e175d379 220:3ff562b51ff5
       
     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 manifest is not editable; its contents will
       
    26 	be overwritten by package or patch operations, including
       
    27 	operating system upgrade.  Make customizations in a different
       
    28 	file.
       
    29 
       
    30 	Service to set the default print service.
       
    31 -->
       
    32 
       
    33 <service_bundle type='manifest' name='SUNWpcu:print-service-selector'>
       
    34 
       
    35 <service
       
    36 	name='application/print/service-selector'
       
    37 	type='service'
       
    38 	version='1'>
       
    39 
       
    40 	<create_default_instance enabled='true' />
       
    41 
       
    42 	<single_instance />
       
    43 
       
    44 	<!--
       
    45         This service sets the default print service depending on the
       
    46         services available.
       
    47 	-->
       
    48 
       
    49 	<dependency
       
    50 		name='usr'
       
    51 		type='service'
       
    52 		grouping='require_all'
       
    53 		restart_on='none'>
       
    54 		<service_fmri value='svc:/system/filesystem/minimal' />
       
    55 	</dependency>
       
    56 
       
    57 	<!--
       
    58 	This dependency  is required  to ensure that the cups manifest has
       
    59 	been imported prior to selecting a default print service.
       
    60 	-->
       
    61 
       
    62 	<dependency
       
    63 		name='cups-manifest-import'
       
    64 		type='service'
       
    65 		grouping='optional_all'
       
    66 		restart_on='none'>
       
    67 		<service_fmri value='svc:/system/manifest-import' />
       
    68 	</dependency>
       
    69 
       
    70 	<exec_method
       
    71 		type='method'
       
    72 		name='start'
       
    73 		exec='/lib/svc/method/print-service-selector'
       
    74 		timeout_seconds='0' />
       
    75 
       
    76 	<exec_method
       
    77 		type='method'
       
    78 		name='stop'
       
    79 		exec=':true'
       
    80 		timeout_seconds='0' />
       
    81 
       
    82 	<property_group name='startd' type='framework'>
       
    83 		<propval name='duration' type='astring' value='transient' />
       
    84 	</property_group>
       
    85 
       
    86 	<stability value='Unstable' />
       
    87 
       
    88 	<template>
       
    89 		<common_name>
       
    90 			<loctext xml:lang='C'>
       
    91 				print service selector
       
    92 			</loctext>
       
    93 		</common_name>
       
    94 	</template>
       
    95 </service>
       
    96 
       
    97 </service_bundle>