The dot in ... --- ...

Chris Gerhard's Weblog

« How many snapshots? | Main | "Time Trial" up Box... »

20060907 Thursday September 07, 2006

ddclient meets SMF

Nice quick bit of progress on the home server today and one more service of the Qube.

Downloaded ddclient and copied over the configuration from the Qube. Then just had to write a smf manifest:

<?xml version="1.0"?>

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

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

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

        <create_default_instance enabled='true' />

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

        <exec_method
                type='method'
                name='start'
                exec='/usr/sbin/ddclient'
                timeout_seconds='0' />

        <exec_method
                type='method'
                name='stop'
                exec=':kill -15'
                timeout_seconds='3' />

        <stability value='Unstable'/>

        <template>
                <common_name>
                        <loctext xml:lang='C'>Dynamic DNS client</loctext>
                </common_name>
        </template>
</service>
</service_bundle>

Then the usual 'svccfg import ddclient.xml' and then we are going:

# svcs -x ddclient
svc:/network/ddclient:default (Dynamic DNS client)
 State: online since Thu Sep 07 22:36:47 2006
   See: /var/svc/log/network-ddclient:default.log
Impact: None.
#

tags:



( Sep 07 2006, 10:43:54 PM BST ) Permalink Trackback

   
Comments:

Yo!! Mister it was like someone for yours they shouldn`t they be here they!! Montreal

Posted by Chris4587777 on September 08, 2006 at 08:01 PM BST #

Post a Comment:

Comments are closed for this entry.

Valid HTML! Valid CSS!

Except where otherwise noted, this site is
licensed under a Creative Commons License 2.0

This is a personal weblog, I do not speak for my employer.