protect.1 (cb56f86025b88bc4174aa668b3966886b8420955) | protect.1 (6452fb1e87ed9d00b52fa1e63e7c3a7516c9586c) |
---|---|
1.\" Copyright (c) 2013 Hudson River Trading LLC 2.\" Written by: John H. Baldwin <jhb@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" 26.\" $FreeBSD$ 27.\" | 1.\" Copyright (c) 2013 Hudson River Trading LLC 2.\" Written by: John H. Baldwin <jhb@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" 26.\" $FreeBSD$ 27.\" |
28.Dd July 7, 2022 | 28.Dd July 12, 2022 |
29.Dt PROTECT 1 30.Os 31.Sh NAME 32.Nm protect 33.Nd "protect processes from being killed when swap space is exhausted" 34.Sh SYNOPSIS 35.Nm 36.Op Fl i --- 70 unchanged lines hidden (view full) --- 107.Nm PI 108points at the inheritance flag. 109The process is protected if 110.Nm P 111bit is set to 1. 112All children of this process will also be protected if 113.Nm PI 114bit is set to 1. | 29.Dt PROTECT 1 30.Os 31.Sh NAME 32.Nm protect 33.Nd "protect processes from being killed when swap space is exhausted" 34.Sh SYNOPSIS 35.Nm 36.Op Fl i --- 70 unchanged lines hidden (view full) --- 107.Nm PI 108points at the inheritance flag. 109The process is protected if 110.Nm P 111bit is set to 1. 112All children of this process will also be protected if 113.Nm PI 114bit is set to 1. |
115.Sh DIAGNOSTICS 116.Bl -diag 117.It "protect: procctl: Operation not permitted" 118The 119.Nm 120command does not have the required permissions to protect selected processes. 121There are many reasons why this could be the case, e.g.: 122.Bl -dash 123.It 124.Nm 125is not executed by root. 126.It 127.Nm 128is executed inside a 129.Xr jail 8 , 130which is not supported at the moment. 131.El 132.El |
|
115.Sh SEE ALSO 116.Xr ps 1 , 117.Xr procctl 2 , 118.Xr rc.conf 5 119.Sh BUGS 120If you protect a runaway process that allocates all memory the system will 121deadlock. | 133.Sh SEE ALSO 134.Xr ps 1 , 135.Xr procctl 2 , 136.Xr rc.conf 5 137.Sh BUGS 138If you protect a runaway process that allocates all memory the system will 139deadlock. |