1378N/A<?xml version="1.0"?>
1378N/A<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
1378N/A<!--
1378N/A CDDL HEADER START
1378N/A
1378N/A The contents of this file are subject to the terms of the
1378N/A Common Development and Distribution License (the "License").
1378N/A You may not use this file except in compliance with the License.
1378N/A
1378N/A You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1378N/A or http://www.opensolaris.org/os/licensing.
1378N/A See the License for the specific language governing permissions
1378N/A and limitations under the License.
1378N/A
1378N/A When distributing Covered Code, include this CDDL HEADER in each
1378N/A file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1378N/A If applicable, add the following below this CDDL HEADER, with the
1378N/A fields enclosed by brackets "[]" replaced with your own identifying
1378N/A information: Portions Copyright [yyyy] [name of copyright owner]
1378N/A
1378N/A CDDL HEADER END
1378N/A Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved
1378N/A Use is subject to license terms.
1378N/A
1378N/A ident "@(#)stunnel.xml 1.2 08/07/18 SMI"
1378N/A
1378N/A NOTE: This service manifest is not editable; its contents will
1378N/A be overwritten by package or patch operations, including
1378N/A operating system upgrade. Make customizations in a different
1378N/A file.
1378N/A-->
1378N/A<service_bundle type='manifest' name='SUNWstunnelr:stunnel'>
1378N/A
1378N/A<service
1378N/A name='network/ssl/stunnel'
1378N/A type='service'
1378N/A version='1'>
1378N/A
1378N/A <create_default_instance enabled='false' />
1378N/A
1378N/A <single_instance />
1378N/A
1378N/A <!-- Read/Write access required to /var/run for lockfiles -->
1378N/A <dependency
1378N/A name='filesystem'
1378N/A grouping='require_all'
1378N/A restart_on='none'
1378N/A type='service'>
1378N/A <service_fmri
1378N/A value='svc:/system/filesystem/local'
1378N/A />
1378N/A </dependency>
1378N/A
1378N/A <dependency
1378N/A name='loopback'
1378N/A grouping='require_all'
1378N/A restart_on='none'
1378N/A type='service'>
1378N/A <service_fmri
1378N/A value='svc:/system/filesystem/local'
1378N/A />
1378N/A </dependency>
1378N/A
1378N/A <dependency
1378N/A name='net-physical'
1378N/A grouping='require_all'
1378N/A restart_on='none'
1378N/A type='service'>
1378N/A <service_fmri
1378N/A value='svc:/network/physical'
1378N/A />
1378N/A </dependency>
1378N/A
1378N/A <dependency
1378N/A name='cryptosvc'
1378N/A grouping='require_all'
1378N/A restart_on='none'
1378N/A type='service'>
1378N/A <service_fmri
1378N/A value='svc:/system/cryptosvc'
1378N/A />
1378N/A </dependency>
1378N/A
1378N/A <exec_method
1378N/A type='method'
1378N/A name='start'
1378N/A exec='/usr/bin/stunnel %{config/config_file}'
1378N/A timeout_seconds='60' />
1378N/A
1378N/A <exec_method
1378N/A type='method'
1378N/A name='stop'
1378N/A exec=':kill'
1378N/A timeout_seconds='60' />
1378N/A
1378N/A <property_group name='general' type='framework'>
1378N/A <!-- A user with this authorization can:
1378N/A
1378N/A svcadm restart stunnel
1378N/A svcadm disable -t stunnel
1378N/A svcadm mark <state> stunnel
1378N/A svcadm clear stunnel
1378N/A
1378N/A see auths(1) and user_attr(4)-->
1378N/A
1378N/A <propval
1378N/A name='action_authorization'
1378N/A type='astring'
1378N/A value='solaris.smf.manage.stunnel'
1378N/A />
1378N/A <!-- A user with this authorization can:
1378N/A
1378N/A svcadm disable stunnel
1378N/A svcadm enable stunnel
1378N/A
1378N/A see auths(1) and user_attr(4)-->
1378N/A
1378N/A <propval
1378N/A name='value_authorization'
1378N/A type='astring'
1378N/A value='solaris.smf.value.stunnel'
1378N/A />
1378N/A </property_group>
1378N/A
1378N/A <!-- The properties defined below can be changed by a user
1378N/A with 'solaris.smf.value.stunnel' authorization using the
1378N/A svccfg(1M) command.
1378N/A
1378N/A e.g.
1378N/A
1378N/A svccfg -s stunnel setprop config/config_file = /myconf/etc/stunnel.conf
1378N/A
1378N/A Now refresh the service:
1378N/A
1378N/A svcadm refresh network/stunnel
1378N/A
1378N/A Note: svcadm disable/enable does not use the new property
1378N/A until after the service has been refreshed.
1378N/A
1378N/A ***Do not edit this manifest to change these properties! -->
1378N/A
1378N/A <property_group name='config' type='application'>
1378N/A <propval
1378N/A name='config_file'
1378N/A type='astring'
1378N/A value='/etc/stunnel/stunnel.conf'
1378N/A />
1378N/A <propval
1378N/A name='value_authorization'
1378N/A type='astring'
1378N/A value='solaris.smf.value.stunnel'
1378N/A />
1378N/A </property_group>
1378N/A
1378N/A <!-- default service model of 'contract' -->
1378N/A <property_group name='startd' type='framework'>
1378N/A <propval
1378N/A name='duration'
1378N/A type='astring'
1378N/A value='contract'
1378N/A />
1378N/A </property_group>
1378N/A
1378N/A <stability value='Unstable' />
1378N/A
1378N/A <template>
1378N/A <common_name>
1378N/A <loctext xml:lang='C'>
1378N/A stunnel as a daemon
1378N/A </loctext>
1378N/A </common_name>
1378N/A <documentation>
1378N/A <manpage title='stunnel' section='8'
1378N/A manpath='/usr/share/man' />
1378N/A <doc_link
1378N/A name='stunnel.org website'
1378N/A uri='http://www.stunnel.org'
1378N/A />
1378N/A </documentation>
1378N/A </template>
1378N/A
1378N/A</service>
1378N/A</service_bundle>
1378N/A