suspending a running task
Matthew Seaman
matthew at FreeBSD.org
Thu Aug 17 21:00:53 UTC 2017
On 17/08/2017 17:58, Jim Pazarena wrote:
> Is there any way that root can suspend a task executed by someone else?
>
> In other words, not a program running direct from the console, but just
> any task presently running where the SysAdmin has a desire to
> temporarily suspend it.
Yes, sure.
To stop a process, find its PID and then:
# kill -STOP $pid
This will suspend the process without killing it in much the same way
that Ctrl-Z works in a shell.
Conversely to restart a stopped process:
# kill -CONT $pid
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170817/5ebf2c70/attachment.sig>
More information about the freebsd-questions
mailing list