svcadm:tldr:29a3b
The svcadm disable ${service_name}
command is used to disable a service on a Solaris system.
In Solaris, services are controlled using the Service Management Facility (SMF), which is responsible for starting, stopping, and managing system services. The SMF uses service manifests to define the behavior and dependencies of each service.
To disable a service, you use the svcadm
command with the disable
subcommand, followed by the ${service_name}
parameter, which represents the name of the service you want to disable.
When this command is executed, it informs the SMF to stop and disable the specified service. Disabling a service ensures that it remains in the disabled state even after a system reboot or restart. The service will not start automatically until it is explicitly enabled again using the svcadm enable
command.
For example, if you want to disable the Apache HTTP Server service, the command would be:
svcadm disable apache2
This command would disable and stop the Apache HTTP Server service on the system.