This procedure shows how to stop a program managed by SMF, as well as a program that is not.
# *Stop the service.*
{code}
$ svcadm disable network/ssh
{code}
# *If the program is not managed by SMF, stop the process.*
The following example shows how to stop a terminal running on your laptop.
## *Identify the process ID for the program.*
For this example, look for the process ID for the {{bash}} program running on {{pts/2}}.
{code}
$ ps -ef |grep bash
PID TTY TIME CMD
689 pts/2 0:00 bash
{code}
## *Terminate the process. Use the process ID found in the previous step.*
{code}
$ kill 689
{code}
## *If the preceding command does not kill the process, use the following command:*
{code}
$ kill -KILL 689
{code}
See the kill(1) man page for more information.
{include:bottom_navigation}
# *Stop the service.*
{code}
$ svcadm disable network/ssh
{code}
# *If the program is not managed by SMF, stop the process.*
The following example shows how to stop a terminal running on your laptop.
## *Identify the process ID for the program.*
For this example, look for the process ID for the {{bash}} program running on {{pts/2}}.
{code}
$ ps -ef |grep bash
PID TTY TIME CMD
689 pts/2 0:00 bash
{code}
## *Terminate the process. Use the process ID found in the previous step.*
{code}
$ kill 689
{code}
## *If the preceding command does not kill the process, use the following command:*
{code}
$ kill -KILL 689
{code}
See the kill(1) man page for more information.
{include:bottom_navigation}