<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='courier-authlib'>

<service
    name='network/courier-authlib'
    type='service'
    version='1'>

<single_instance />
    <dependency
        name='postfix'
        grouping='require_all'
        restart_on='none'
        type='service'>
        <service_fmri value='svc:/network/postfix' />
    </dependency>

<instance name='courier-authlib' enabled='false'>
    <dependency
        name='config-file'
        grouping='require_all'
        restart_on='refresh'
        type='path'>
        <service_fmri value='file://localhost/usr/local/etc/authlib/authdaemonrc' />
    </dependency>
    <exec_method
        type='method'
        name='start'
        exec='/lib/svc/method/courier-authlib start'
        timeout_seconds='120' />
    <exec_method
        type='method'
        name='stop'
        exec='/lib/svc/method/courier-authlib stop'
        timeout_seconds='60' />
    <exec_method
        type='method'
        name='refresh'
        exec='/lib/svc/method/courier-authlib refresh'
        timeout_seconds='60' />
    <property_group name='startd' type='framework'>
        <propval name='ignore_error' type='astring'
            value='core,signal' />
    </property_group>
    <property_group name='general' type='framework'>
        <propval name='action_authorization' type='astring'
            value='solaris.smf.manage.courier-authlib' />
    </property_group>
    <template>
    <common_name>
        <loctext xml:lang='C'>
	    Courier authentication library
	</loctext>
    </common_name>
    </template>
</instance>
<stability value='Unstable' />
</service>
</service_bundle>
