What appropriate setting for the duration attribute in the startd property group for this service?

Your company wants to incorporate a legacy script that runs once during the boot cycle as an
SMF service. What appropriate setting for the duration attribute in the startd property group for this
service?

Your company wants to incorporate a legacy script that runs once during the boot cycle as an
SMF service. What appropriate setting for the duration attribute in the startd property group for this
service?

A.
transient

B.
contract

C.
wait

D.
boot

Explanation:
Example:
The default service model is contract, but may be modified. For this example, we are going to start
the service with svc.startd. As a transient service, it will be started once and not restarted by
adding the following lines to the manifest:

<property_group name=’startd’ type=’framework’>
<propval name=’duration’ type=’astring’ value=’transient’
/>
</property_group>
Note:
svc.startd provides three models of service, which are
* Transient services—These are often configuration services, which require no long-running
processes to provide service. Common transient services take care of boot-time cleanup or load
configuration properties into the kernel. Transient services are also sometimes used to overcome
difficulties in conforming to the method requirements for contract or wait services. This is not
recommended and should be considered a stopgap measure.
* Contract services—These are the standard system daemons. They require processes which run
forever once started to provide service. Death of all processes in a contract service is considered
a service error, which will cause the service to restart.
* Wait services—These services run for the lifetime of the child process, and are restarted when
that process exits.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


picoman

picoman

model

Sets the service model. This is the value of the
startd/duration property. Refer to svc.startd(1M). Model
can be set to one of the following values:

o contract

o daemon – synonym for contract

o child

o wait – synonym for child

o transient
The default is transient.
I don’t know the answer

Fouad

Fouad

A
http://docs.oracle.com/cd/E23824_01/html/E21798/firstboot-2.html

The duration property near the end of the example service manifest below has the value transient. A transient service executes the start method once and does not execute it again if the method exits with $SMF_EXIT_OK. The svc.startd daemon does not try to restart the script after its first execution.