I’ve spent much of the day working on the new grommit box. Ran the big ‘smpatch update’, got my BIND fix, and I seem to have all my non-web services/applications up and running. Getting mailman up and running was somewhat of a pain. I used it as a good exercise in writing an SMF manifest though. I ended up deriving one from the network/smtp:sendmail one… undoubtedly, it could be better, but here you go:

< ?xml version='1.0'?>
< !DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
  <service name='network/mailman' type='service' version='0'>
    <single_instance />
    <dependency name='fs-local' grouping='require_all' restart_on='none' type='s
ervice'>
      <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' typ
e='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>
    <dependency name='sendmail' grouping='require_all' restart_on='none' type='s
ervice'>
      <service_fmri value='svc:/network/smtp:sendmail'/>
    </dependency>
    <instance name='mailman' enabled='true'>
      <dependent name='multi-user' restart_on='none' grouping='optional_all'>
        <service_fmri value='svc:/milestone/multi-user'/>
      </dependent>
      <exec_method name='start' type='method' exec='/lib/svc/method/mailman star
t' timeout_seconds='120'>
        <method_context />
      </exec_method>
      <exec_method name='stop' type='method' exec='/lib/svc/method/mailman stop 
%{restarter/contract}' timeout_seconds='60'>
        <method_context />
      </exec_method>
      <exec_method name='refresh' type='method' exec='/lib/svc/method/mailman re
start' timeout_seconds='60'>
        <method_context />
      </exec_method>
      <property_group name='startd' type='framework'>
        <propval name='ignore_error' type='astring' value='core,signal'/>
      </property_group>
      <property_group name='general' type='framework'>
        <propval name='action_authorization' type='astring' value='solaris.smf.m
anage.mailman'/>
      </property_group>
      <template>
        <common_name>
          <loctext xml:lang='C'>GNU mailman mailing list manager</loctext>
        </common_name>
      </template>
    </instance>
    <stability value='Unstable'/>
  </service>
</service_bundle>

the main things I have left to get running are all the web apps, specifically: the photo gallery, webmail, blogs, and mysql.

No Trackbacks to “more work on grommit and an SMF manifest for mailman”

4 Comments to “more work on grommit and an SMF manifest for mailman”

  1. Stephen Lau Says:

    i should note that i copied the supplied /usr/local/mailman/scripts/mailman.sh to /lib/svc/method/mailman. no modifications needed.

  2. Tobias Eigen Says:

    What’s an SMF Manifest? I came here looking for “mailman smf” via google, and am looking for integration tools between mailman and Simple Machines Forum (http://www.simplemachines.org). I’m having a suspicion this isn’t what you’re talking about, but am still curious about what you ARE talking about. :-)

    Cheers,

    Tobias

  3. Stephen Lau Says:

    ah, yes. this SMF is definitely not what you’re looking for :) I’m talking about “Service Management Facility”, a new way of managing services in the Solaris 10 (and beyond) Operating System.

  4. Tobias Eigen Says:

    there really aren’t enough letters in the alphabet for all the acronyms we need in this world. Many thanks for the quick reply.

    Cheers,

    Tobias

Leave a Reply


Recent posts