<?xml version="1.0"?>

<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type='manifest' name='postgres'>

<service 
        name='appl/postgres'
        type='service'
        version='1'>
                        
        <create_default_instance enabled='true' />
                           
        <dependency
                name='autofs'
		grouping='require_all'
                restart_on='none'
                type='service'>
                <service_fmri value='svc:/system/filesystem/autofs' />
        </dependency>
        
        <exec_method type='method'
                     name='start'
		     exec='/postgres/svc/method/postgres'
                     timeout_seconds='0' />
        <exec_method type='method' 
                     name='stop'
		     exec=':kill -15'
                     timeout_seconds='3' />
                
        <property_group name='postgres' type='application'>
        <propval name='user' type='astring' value='postgres' />
        <propval name='path' type='astring' value='/usr/local/pgsql/bin' />
        <propval name='dbdir' type='astring' value='/var/pgsql' />
        </property_group>
</service>
</service_bundle>
                        