diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /runit | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2 busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 64 | ||||
-rw-r--r-- | runit/runsv.c | 5 | ||||
-rw-r--r-- | runit/runsvdir.c | 7 | ||||
-rw-r--r-- | runit/sv.c | 16 |
4 files changed, 92 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 | /* |
diff --git a/runit/runsv.c b/runit/runsv.c index e76572daa..ad8d84f74 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -28,6 +28,11 @@ 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 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ | 29 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ |
30 | 30 | ||
31 | //usage:#define runsv_trivial_usage | ||
32 | //usage: "DIR" | ||
33 | //usage:#define runsv_full_usage "\n\n" | ||
34 | //usage: "Start and monitor a service and optionally an appendant log service" | ||
35 | |||
31 | #include <sys/poll.h> | 36 | #include <sys/poll.h> |
32 | #include <sys/file.h> | 37 | #include <sys/file.h> |
33 | #include "libbb.h" | 38 | #include "libbb.h" |
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 166664237..9495a2a4f 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -28,6 +28,13 @@ 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 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ | 29 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ |
30 | 30 | ||
31 | //usage:#define runsvdir_trivial_usage | ||
32 | //usage: "[-P] [-s SCRIPT] DIR" | ||
33 | //usage:#define runsvdir_full_usage "\n\n" | ||
34 | //usage: "Start a runsv process for each subdirectory. If it exits, restart it.\n" | ||
35 | //usage: "\n -P Put each runsv in a new session" | ||
36 | //usage: "\n -s SCRIPT Run SCRIPT <signo> after signal is processed" | ||
37 | |||
31 | #include <sys/poll.h> | 38 | #include <sys/poll.h> |
32 | #include <sys/file.h> | 39 | #include <sys/file.h> |
33 | #include "libbb.h" | 40 | #include "libbb.h" |
diff --git a/runit/sv.c b/runit/sv.c index c420a91a6..322688a36 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -153,6 +153,22 @@ Exit Codes | |||
153 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ | 153 | /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ |
154 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ | 154 | /* TODO: depends on runit_lib.c - review and reduce/eliminate */ |
155 | 155 | ||
156 | //usage:#define sv_trivial_usage | ||
157 | //usage: "[-v] [-w SEC] CMD SERVICE_DIR..." | ||
158 | //usage:#define sv_full_usage "\n\n" | ||
159 | //usage: "Control services monitored by runsv supervisor.\n" | ||
160 | //usage: "Commands (only first character is enough):\n" | ||
161 | //usage: "\n" | ||
162 | //usage: "status: query service status\n" | ||
163 | //usage: "up: if service isn't running, start it. If service stops, restart it\n" | ||
164 | //usage: "once: like 'up', but if service stops, don't restart it\n" | ||
165 | //usage: "down: send TERM and CONT signals. If ./run exits, start ./finish\n" | ||
166 | //usage: " if it exists. After it stops, don't restart service\n" | ||
167 | //usage: "exit: send TERM and CONT signals to service and log service. If they exit,\n" | ||
168 | //usage: " runsv exits too\n" | ||
169 | //usage: "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" | ||
170 | //usage: "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" | ||
171 | |||
156 | #include <sys/poll.h> | 172 | #include <sys/poll.h> |
157 | #include <sys/file.h> | 173 | #include <sys/file.h> |
158 | #include "libbb.h" | 174 | #include "libbb.h" |