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?
A.
Enable the service
B.
Export the service
C.
Import the service.
D.
Create a snapshot of the service to be stored in the repository.
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).