Bind 9 on Solaris 10 with SMF
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:
< !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>

Unixwiz is a GENIUS!!!
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
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..