Forrest logo
back to the svcadm tool

svcadm:tldr:29a3b

svcadm: Disable service.
$ svcadm disable ${service_name}
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the svcadm tool