This procedure shows how to stop a program managed by SMF, as well as a program that is not.
- Stop the service.
$ svcadm disable network/ssh
- 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.$ ps -ef |grep bash PID TTY TIME CMD 689 pts/2 0:00 bash
- Terminate the process. Use the process ID found in the previous step.
$ kill 689
- If the preceding command does not kill the process, use the following command:
$ kill -KILL 689
See the kill(1) man page for more information.
- Identify the process ID for the program.
For more information:


Comments (1)
Dec 23, 2008
Alysson_Troffer says:
The terms "service" and "program" seem to be used interchangeably. Are they the ...The terms "service" and "program" seem to be used interchangeably. Are they the same thing? I find switching between them to be a bit confusing.
Also, does Step 1 apply to just services, not programs? Or just to services managed by SMF? This isn't clear.