Home > SMF, Solaris > Bind 9 on Solaris 10 with SMF

Bind 9 on Solaris 10 with SMF

November 23rd, 2005

I decided to create my own SMF Mainfest for Bind9 on Solaris 10 for our new nameservers. Pretty basic one, I will work on a more involved one later:

< ?xml version="1.0"?>
< !DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type="manifest" name="WVU:named">
   <service name="application/named" type="service" version="5">
       <create_default_instance enabled="false"/>
           <single_instance />
             <dependency name="fs-local" grouping="require_all" restart_on="none" type="service">
                <service_fmri value="svc:/system/filesystem/local"/>
             </dependency>
            <exec_method type="method" name="start" exec="/nameserve/local/bind/sbin/named -u dns -n2 -t /nameserve" timeout_seconds="60"/>
            <exec_method type="method" name="stop" exec="/usr/bin/pkill named" timeout_seconds="60"/>
             <stability value="Unstable"/>
             <template>
               <common_name>
                   <loctext xml:lang="C">BIND 9.3.1</loctext>
               </common_name>
             </template>
        </service>
</service_bundle>

SMF, Solaris ,

  1. May 22nd, 2007 at 08:52 | #1

    Unixwiz is a GENIUS!!!

  2. May 22nd, 2007 at 08:59 | #2

    Save that as:

    /var/svc/manifest/application/application/metadata.xml

    Then run:

    # svccfg
    svc:> validate /var/svc/manifest/application/application/metadata.xml
    svc:> import /var/svc/manifest/application/application/metadata.xml
    svc:> quit
    #

    it will then show up in svcs -a
    svcadm enable application
    svcadm disable application

  3. May 22nd, 2007 at 21:32 | #3

    Actully locally created entries should only go in the /var/svc/manifest/site directory. The others are for Solaris /Sun supplied ones.

    you can also do a :
    svccfg import bind9.xml

    from the command line and it will import it in. Same for the validate..

  1. No trackbacks yet.
Comments are closed.