1Z0-822 · Question #134
You are creating a new SMF service named newservice. You perform the following steps: - Create the XML manifest file to define the service. - Create a script to be used to start and stop the service…
The correct answer is C. Import the service. Refer to step 3 below. After a typical software installation, there can be a half dozen or more processes that need to be started and stopped during system startup and shutdown. In addition, these processes may depend on each other and may need to be monitored and restarted if…
Question
You are creating a new SMF service named newservice. You perform the following steps:
- Create the XML manifest file to define the service.
- Create a script to be used to start and stop the service and set the
execute permissions on this script. What is the next step that you must perform to install this service?
Options
- AEnable the service
- BExport the service
- CImport the service.
- DCreate a snapshot of the service to be stored in the repository.
How the community answered
(54 responses)- A2% (1)
- B6% (3)
- C91% (49)
- D2% (1)
Explanation
Refer to step 3 below. After a typical software installation, there can be a half dozen or more processes that need to be started and stopped during system startup and shutdown. In addition, these processes may depend on each other and may need to be monitored and restarted if they fail. For each process, these are the logical steps that need to be done to incorporate these as services in SMF: 1.Create a service manifest file. 2.Create a methods script file to define the start, stop, and restart methods for the service. 3.Validate and import the service manifest using svccfg(1M). 4.Enable or start the service using svcadm(1M). 5.Verify the service is running using svcs(1).
Topics
Community Discussion
No community discussion yet for this question.