diff options
Diffstat (limited to 'runit/chpst.c')
-rw-r--r-- | runit/chpst.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index dc8a26aeb..63da4797f 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -28,6 +28,70 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
28 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ | 28 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ |
29 | /* Dependencies on runit_lib.c removed */ | 29 | /* Dependencies on runit_lib.c removed */ |
30 | 30 | ||
31 | //usage:#define chpst_trivial_usage | ||
32 | //usage: "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" | ||
33 | //usage: " [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" | ||
34 | //usage: " [-p N] [-f BYTES] [-c BYTES] PROG ARGS" | ||
35 | //usage:#define chpst_full_usage "\n\n" | ||
36 | //usage: "Change the process state, run PROG\n" | ||
37 | //usage: "\nOptions:" | ||
38 | //usage: "\n -u USER[:GRP] Set uid and gid" | ||
39 | //usage: "\n -U USER[:GRP] Set $UID and $GID in environment" | ||
40 | //usage: "\n -e DIR Set environment variables as specified by files" | ||
41 | //usage: "\n in DIR: file=1st_line_of_file" | ||
42 | //usage: "\n -/ DIR Chroot to DIR" | ||
43 | //usage: "\n -n NICE Add NICE to nice value" | ||
44 | //usage: "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES" | ||
45 | //usage: "\n -d BYTES Limit data segment" | ||
46 | //usage: "\n -o N Limit number of open files per process" | ||
47 | //usage: "\n -p N Limit number of processes per uid" | ||
48 | //usage: "\n -f BYTES Limit output file sizes" | ||
49 | //usage: "\n -c BYTES Limit core file size" | ||
50 | //usage: "\n -v Verbose" | ||
51 | //usage: "\n -P Create new process group" | ||
52 | //usage: "\n -0 Close stdin" | ||
53 | //usage: "\n -1 Close stdout" | ||
54 | //usage: "\n -2 Close stderr" | ||
55 | //usage: | ||
56 | //usage:#define envdir_trivial_usage | ||
57 | //usage: "DIR PROG ARGS" | ||
58 | //usage:#define envdir_full_usage "\n\n" | ||
59 | //usage: "Set various environment variables as specified by files\n" | ||
60 | //usage: "in the directory DIR, run PROG" | ||
61 | //usage: | ||
62 | //usage:#define envuidgid_trivial_usage | ||
63 | //usage: "USER PROG ARGS" | ||
64 | //usage:#define envuidgid_full_usage "\n\n" | ||
65 | //usage: "Set $UID to USER's uid and $GID to USER's gid, run PROG" | ||
66 | //usage: | ||
67 | //usage:#define setuidgid_trivial_usage | ||
68 | //usage: "USER PROG ARGS" | ||
69 | //usage:#define setuidgid_full_usage "\n\n" | ||
70 | //usage: "Set uid and gid to USER's uid and gid, drop supplementary group ids,\n" | ||
71 | //usage: "run PROG" | ||
72 | //usage: | ||
73 | //usage:#define softlimit_trivial_usage | ||
74 | //usage: "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" | ||
75 | //usage: " [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" | ||
76 | //usage: " PROG ARGS" | ||
77 | //usage:#define softlimit_full_usage "\n\n" | ||
78 | //usage: "Set soft resource limits, then run PROG\n" | ||
79 | //usage: "\nOptions:" | ||
80 | //usage: "\n -a BYTES Limit total size of all segments" | ||
81 | //usage: "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES" | ||
82 | //usage: "\n -d BYTES Limit data segment" | ||
83 | //usage: "\n -s BYTES Limit stack segment" | ||
84 | //usage: "\n -l BYTES Limit locked memory size" | ||
85 | //usage: "\n -o N Limit number of open files per process" | ||
86 | //usage: "\n -p N Limit number of processes per uid" | ||
87 | //usage: "\nOptions controlling file sizes:" | ||
88 | //usage: "\n -f BYTES Limit output file sizes" | ||
89 | //usage: "\n -c BYTES Limit core file size" | ||
90 | //usage: "\nEfficiency opts:" | ||
91 | //usage: "\n -r BYTES Limit resident set size" | ||
92 | //usage: "\n -t N Limit CPU time, process receives" | ||
93 | //usage: "\n a SIGXCPU after N seconds" | ||
94 | |||
31 | #include "libbb.h" | 95 | #include "libbb.h" |
32 | 96 | ||
33 | /* | 97 | /* |