Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2017 22:00:51 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: suspending a running task
Message-ID:  <f4d41794-1155-5609-a091-d874e21dab76@FreeBSD.org>
In-Reply-To: <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz>
References:  <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--lNd2bucbhtcrUQeNtE6Ll5qiKTxdk39dM
Content-Type: multipart/mixed; boundary="bERlF8JcRB5PPCRmfcDhacA7fdB2gjahb";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-questions@freebsd.org
Message-ID: <f4d41794-1155-5609-a091-d874e21dab76@FreeBSD.org>
Subject: Re: suspending a running task
References: <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz>
In-Reply-To: <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz>

--bERlF8JcRB5PPCRmfcDhacA7fdB2gjahb
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 17/08/2017 17:58, Jim Pazarena wrote:
> Is there any way that root can suspend a task executed by someone else?=

>=20
> 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


--bERlF8JcRB5PPCRmfcDhacA7fdB2gjahb--

--lNd2bucbhtcrUQeNtE6Ll5qiKTxdk39dM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZlgQDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATcUcP/RAD4/3Xig+mUd7NSX+HijIX
GPvntghUK8fBOQApaEFYQDJHHYqZRWgnwwjwFBWuVv1lxLIZpdeeJTAy7iZuVNxI
IsBQOGtNYIwSx7oiUW60bZR+G7MIddwfPyMZNdo6Jl2+6bMPQZyhlsuTFrwUVomF
0hg/X+6nDr9/hOshXhkcK57/qEZKcpsOqWfDqupwtGfSb60MJXgl3/7X/F+fVkfA
JOGWTQjaMiGeJCklZgZuuO3LeV4nMWbTxTy3kmxfd0N0pCSvOTfrsBIXwOd3GbU0
tn/KEs2CJNr0PaHmqfusqX+RXTfd+n8ged0IIlYjFr+ZUQJCg/hljIE06myhb6W0
GZV4X2n1R6F3gJjLJBrw85Bw6mh/TD7tu+NoHXbq+RLRnwWET3JUtA97VdMUfDb0
nYOh/PleCN81U7cAL6K7rUe93JLQgGOxirQNP2B0v3nota/fsi+dVjMq/8QrtA/t
D8SWKXCX3vbNe7ibaPscGfcBjG7VIUfj00pIXVZFFnb4luMhw15cLukaPZOCAQtv
HotBJHOZZ0RujASngKhhbq6pDBVf3dzkoXrIq1UgqDR8B5s2HSen3OuznC2RCrjn
0sqQyjzWPtty3HinWRxruFb82wUX+ukDdl5Ox8OxGKx4zUpFSCLQL6v/aL6aJgFz
LcOjt+lVjdVJhA17RMV7
=C81k
-----END PGP SIGNATURE-----

--lNd2bucbhtcrUQeNtE6Ll5qiKTxdk39dM--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?f4d41794-1155-5609-a091-d874e21dab76>