Oracle Solaris 11 Advanced System Administration 1z0-822 Question # 13 Topic 1 Discussion
1z0-822 Exam Topic 1 Question 13 Discussion:
Question #: 13
Topic #: 1
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?
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:
/>
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.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit