fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

commit 1cac2c7e30911e0e01b49b8c304157f2bcfb05c7
parent dde5bc1589dc5b5000e4eeea19fa88bfc0433f6a
Author: Friedel Schön <[email protected]>
Date:   Tue, 23 May 2023 12:49:30 +0200

modify chpst manual to match the executable

Diffstat:
Mman/chpst.8 | 35+++++++++++++++++++----------------
Msrc/man/chpst.8.md | 36+++++++++++++++++++++---------------
2 files changed, 40 insertions(+), 31 deletions(-)

diff --git a/man/chpst.8 b/man/chpst.8 @@ -18,10 +18,6 @@ envuidgid. Set the environment variables $UID and $GID to the user's uid and gid \fB\fC\-b argv0\fR Run prog with argv0 as the 0th argument. .PP -\fB\fC\-e dir\fR -Set various environment variables as specified by files in the directory dir: If dir contains a file named k whose first line is v, chpst removes the environment variable k if it exists, and then adds the environment variable k with the value v. The name k must not contain =. Spaces and tabs at the end of v are removed, and nulls in v are changed to newlines. If -the file k is empty (0 bytes long), chpst removes the environment variable k if it exists, without adding a new variable. -.PP \fB\fC\-/ root\fR Change the root directory to root before starting prog. .PP @@ -39,6 +35,25 @@ Open the file lock for writing, and obtain an exclusive lock on it. lock will be \fB\fC\-L lock\fR The same as \-l, but fail immediately if lock is locked by another process. .PP +\fB\fC\-P\fR +Run prog in a new process group. +.PP +\fB\fC\-0\fR +Close standard input before starting prog. +.PP +\fB\fC\-1\fR +Close standard output before starting prog. +.PP +\fB\fC\-2\fR +Close standard error before starting prog. +.SH NOT IMPLEMENTED +.PP +Following options are defined in runit's chpst but are ignored by fiss' implementation. +.PP +\fB\fC\-e dir\fR +Set various environment variables as specified by files in the directory dir: If dir contains a file named k whose first line is v, chpst removes the environment variable k if it exists, and then adds the environment variable k with the value v. The name k must not contain =. Spaces and tabs at the end of v are removed, and nulls in v are changed to newlines. If +the file k is empty (0 bytes long), chpst removes the environment variable k if it exists, without adding a new variable. +.PP \fB\fC\-m bytes\fR Limit the data segment, stack segment, locked physical pages, and total of all segment per process to bytes bytes each. .PP @@ -59,18 +74,6 @@ Limit the core file size to bytes bytes. .PP \fB\fC\-v\fR Print verbose messages to standard error. This includes warnings about limits unsupported by the system. -.PP -\fB\fC\-P\fR -Run prog in a new process group. -.PP -\fB\fC\-0\fR -Close standard input before starting prog. -.PP -\fB\fC\-1\fR -Close standard output before starting prog. -.PP -\fB\fC\-2\fR -Close standard error before starting prog. .SH EXIT CODES .PP chpst exits 100 when called with wrong options. It prints an error message and exits 111 if it has trouble changing the process state. Otherwise its exit code is the same as that of prog. diff --git a/src/man/chpst.8.md b/src/man/chpst.8.md @@ -21,10 +21,6 @@ envuidgid. Set the environment variables $UID and $GID to the user's uid and gid `-b argv0` Run prog with argv0 as the 0th argument. -`-e dir` -Set various environment variables as specified by files in the directory dir: If dir contains a file named k whose first line is v, chpst removes the environment variable k if it exists, and then adds the environment variable k with the value v. The name k must not contain =. Spaces and tabs at the end of v are removed, and nulls in v are changed to newlines. If -the file k is empty (0 bytes long), chpst removes the environment variable k if it exists, without adding a new variable. - `-/ root` Change the root directory to root before starting prog. @@ -40,6 +36,27 @@ Open the file lock for writing, and obtain an exclusive lock on it. lock will be `-L lock` The same as -l, but fail immediately if lock is locked by another process. +`-P` +Run prog in a new process group. + +`-0` +Close standard input before starting prog. + +`-1` +Close standard output before starting prog. + +`-2` +Close standard error before starting prog. + + +## NOT IMPLEMENTED + +Following options are defined in runit's chpst but are ignored by fiss' implementation. + +`-e dir` +Set various environment variables as specified by files in the directory dir: If dir contains a file named k whose first line is v, chpst removes the environment variable k if it exists, and then adds the environment variable k with the value v. The name k must not contain =. Spaces and tabs at the end of v are removed, and nulls in v are changed to newlines. If +the file k is empty (0 bytes long), chpst removes the environment variable k if it exists, without adding a new variable. + `-m bytes` Limit the data segment, stack segment, locked physical pages, and total of all segment per process to bytes bytes each. @@ -61,17 +78,6 @@ Limit the core file size to bytes bytes. `-v` Print verbose messages to standard error. This includes warnings about limits unsupported by the system. -`-P` -Run prog in a new process group. - -`-0` -Close standard input before starting prog. - -`-1` -Close standard output before starting prog. - -`-2` -Close standard error before starting prog. ## EXIT CODES