Home » Oracle » 1z0-822 » 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
Correct Answer: A
Explanation/Reference:
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.
Download Printable PDF. VALID exam to help you PASS.
|
|