From owner-freebsd-questions@freebsd.org Thu Aug 17 21:00:53 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 417EDDD6CD5 for ; Thu, 17 Aug 2017 21:00:53 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F13FD6478B for ; Thu, 17 Aug 2017 21:00:52 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 6374621A4 for ; Thu, 17 Aug 2017 21:00:51 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/6374621A4; dkim=none; dkim-atps=neutral Subject: Re: suspending a running task To: freebsd-questions@freebsd.org References: <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz> From: Matthew Seaman Message-ID: Date: Thu, 17 Aug 2017 22:00:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <15fb52c8-3a90-31c8-a6ca-b4bb2422b2a1@paz.bz> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lNd2bucbhtcrUQeNtE6Ll5qiKTxdk39dM" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 21:00:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lNd2bucbhtcrUQeNtE6Ll5qiKTxdk39dM Content-Type: multipart/mixed; boundary="bERlF8JcRB5PPCRmfcDhacA7fdB2gjahb"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: 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--