[OmniOS-discuss] Unable to install Bind9 server

Michael Mounteney gate03 at landcroft.co.uk
Wed Apr 3 04:58:55 EDT 2013


On Wed, 03 Apr 2013 10:05:14 +0200
Robin Smidsrød <robin at smidsrod.no> wrote:

> I believe svcadm enable network/dns/bind should make it start, though
> I'm just a beginner with regards to SMF myself.

If you or the installation script hasn't imported an SMF, it won't
work.  I had to obtain one for dovecot so here's mine, which I must
have found on the interwebs somewhere.

svccfg import dovecot.xml

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

        <service
                name='network/imap'
                type='service'
                version='1'>

                <single_instance/>

                <dependency
                        name='fs-local'
                        grouping='require_all'
                        restart_on='none'
                        type='service'>
                        <service_fmri
                value='svc:/system/filesystem/local'/> </dependency>

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

                <dependency
                        name='name-services'
                        grouping='require_all'
                        restart_on='refresh'
                        type='service'>
                        <service_fmri
                value='svc:/milestone/name-services'/> </dependency>

                <dependency
                        name='identity'
                        grouping='optional_all'
                        restart_on='refresh'
                        type='service'>
                        <service_fmri
                value='svc:/system/identity:domain'/> </dependency>

                <dependency
                        name='system-log'
                        grouping='optional_all'
                        restart_on='none'
                        type='service'>
                        <service_fmri value='svc:/system/system-log'/>
                </dependency>

                <instance name='dovecot' enabled='true'>

                        <dependency
                                name='master-config'
                                grouping='require_all'
                                restart_on='refresh'
                                type='path'>
                                <service_fmri
                        value='file://localhost/opt/omni/etc/dovecot/dovecot.conf'/>
                        </dependency>

                        <dependency
                                name='nsswitch'
                                grouping='require_all'
                                restart_on='refresh'
                                type='path'>
                                <service_fmri
                        value='file://localhost/etc/nsswitch.conf'/>
                        </dependency>

                        <dependent
                                name='imap-dovecot_multi-user'
                                grouping='optional_all'
                                restart_on='none'>
                                <service_fmri
                        value='svc:/milestone/multi-user'/> </dependent>

                        <exec_method
                                type='method'
                                name='start'
                                exec='/lib/svc/method/imap-dovecot
                        start' timeout_seconds='10'/>

                        <exec_method
                                type='method'
                                name='stop'
                                exec='/lib/svc/method/imap-dovecot stop'
                                timeout_seconds='10'/>

                        <exec_method
                                type='method'
                                name='refresh'
                                exec='/lib/svc/method/imap-dovecot
                        refresh' timeout_seconds='10'/>

                        <property_group name='startd' type='framework'>
                                <propval name='ignore_error'
                        type='astring' value='core,signal'/>
                        </property_group>

                        <template>
                                <common_name>
                                        <loctext xml:lang='C'>Dovecot
                        IMAP server</loctext> </common_name>
                        </template>
                </instance>
                <stability value='Unstable'/>
        </service>
</service_bundle>


More information about the OmniOS-discuss mailing list