View Source

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}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact