1 <?xml version="1.0"?>
   2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
   3 <!--
   4  Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
   5 
   6  CDDL HEADER START
   7 
   8  The contents of this file are subject to the terms of the
   9  Common Development and Distribution License (the "License").
  10  You may not use this file except in compliance with the License.
  11 
  12  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  13  or http://www.opensolaris.org/os/licensing.
  14  See the License for the specific language governing permissions
  15  and limitations under the License.
  16 
  17  When distributing Covered Code, include this CDDL HEADER in each
  18  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  19  If applicable, add the following below this CDDL HEADER, with the
  20  fields enclosed by brackets "[]" replaced with your own identifying
  21  information: Portions Copyright [yyyy] [name of copyright owner]
  22 
  23  CDDL HEADER END
  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 manifest for the PAM configuration upgrade (pamconv) service.
  31 -->
  32 
  33 <service_bundle type='manifest' name='SUNWcsr:pam-upgrade'>
  34 
  35 <service
  36         name='system/pam-upgrade'
  37         type='service'
  38         version='1'>
  39 
  40         <create_default_instance enabled='true' />
  41 
  42         <single_instance />
  43 
  44         <dependency
  45                 name='filesystem'
  46                 grouping='require_all'
  47                 restart_on='none'
  48                 type='service'>
  49                 <service_fmri value='svc:/system/filesystem/local'/>
  50         </dependency>
  51 
  52         <exec_method
  53                 type='method'
  54                 name='stop'
  55                 exec=':true'
  56                 timeout_seconds='60' >
  57         </exec_method>
  58 
  59         <exec_method
  60                 type='method'
  61                 name='start'
  62                 exec='/lib/svc/method/pamconv %m'
  63                 timeout_seconds='120' >
  64         </exec_method>
  65 
  66         <property_group
  67                 name='startd'
  68                 type='framework'>
  69                 <propval name='duration' type='astring' value='transient' />
  70         </property_group>
  71 
  72         <stability value='Unstable' />
  73 
  74         <template>
  75                 <common_name>
  76                         <loctext xml:lang='C'>pam-upgrade</loctext>
  77                 </common_name>
  78                 <description>
  79                         <loctext xml:lang='C'>
  80 pam-upgrade handles the conversion of a legacy, monolithic /etc/pam.conf file
  81 into /etc/pam.d per-service shard files.
  82                         </loctext>
  83                 </description>
  84                 <documentation>
  85                         <manpage title='pam.conf' section='4'
  86                                 manpath='/usr/share/man' />
  87                 </documentation>
  88         </template>
  89 </service>
  90 
  91 </service_bundle>