Looking at existing services, svc.startd(1M), and smf_restarter(5), there
seem to be two ways to define a service as transient.  All the existing
services I've found use
        <property_group name='startd' type='framework'>
                <propval name='duration' type='astring' value='transient' />
        </property_group>
even though they all appear to be single instance services.  My reading
of smf_restarter(5) leads me to believe I could declare a service to be
        <transient_process />
Are these equivalent?  Which is preferred (and perhaps why ;-)?

Second question, is it safe to have a dependency on a transient service
when the dependent service requires the completion of a possibly long
running start method (i.e., something that does significant work, but
does not stay around after finishing its work -- that is not a daemon)?
If not, what is the preferred way to provide for such a dependency?

Thankx,
Gary..

Reply via email to