1 <?xml version="1.0"?>
   2 <!--
   3 CDDL HEADER START
   4 
   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.
   8 
   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.
  13 
  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]
  19 
  20 CDDL HEADER END
  21 -->
  22 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  23 <!--
  24  Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25  Use is subject to license terms.
  26 -->
  27 
  28 <service_bundle type='manifest' name='SUNWipplr:ipp-listener'>
  29 
  30 <service
  31     name='application/print/ipp-listener'
  32     type='service'
  33     version='1'>
  34 
  35         <create_default_instance enabled='false' />
  36 
  37         <dependency name='print-service'
  38             grouping='require_any'
  39             restart_on='refresh'
  40             type='service'>
  41             <service_fmri value='svc:/application/print/server' />
  42         </dependency>
  43 
  44         <exec_method
  45             type='method'
  46             name='start'
  47             exec='/usr/apache2/2.2/bin/httpd -f /etc/apache2/2.2/httpd-standalone-ipp.conf'
  48             timeout_seconds='10' />
  49 
  50         <exec_method
  51             type='method'
  52             name='stop'
  53             exec='/bin/pkill -f httpd-standalone-ipp.conf'
  54             timeout_seconds='5' />
  55 
  56         <property_group name='general' type='framework'>
  57                 <!-- to start/stop IPP listening service-->
  58                 <propval name='action_authorization' type='astring'
  59                         value='solaris.print.admin' />
  60                 <propval name='value_authorization' type='astring'
  61                         value='solaris.print.admin' />
  62         </property_group>
  63 
  64         <property_group name='firewall_context' type='com.sun,fw_definition'>
  65                 <propval name='ipf_method' type='astring'
  66                         value='/lib/svc/method/print-svc ipfilter svc:/application/print/server:default' />
  67         </property_group>
  68 
  69         <stability value='Unstable' />
  70 
  71         <template>
  72                 <common_name>
  73                         <loctext xml:lang='C'>
  74                                 Internet Print Protocol Listening Service
  75                         </loctext>
  76                 </common_name>
  77                 <documentation>
  78                         <manpage title='mod_ipp' section='4'
  79                                 manpath='/usr/share/man' />
  80                 </documentation>
  81         </template>
  82 </service>
  83 
  84 </service_bundle>