diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-19 00:41:28 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-19 00:41:28 +0200 |
commit | 0863e1a576c4b26bb87564b3a403f1094814f1aa (patch) | |
tree | 5670b59149bfff4ad86acf008ac66abf0f7557da | |
parent | 000eda41c084bae95d9e40a570cbdaa5ffd3d22e (diff) | |
download | busybox-w32-0863e1a576c4b26bb87564b3a403f1094814f1aa.tar.gz busybox-w32-0863e1a576c4b26bb87564b3a403f1094814f1aa.tar.bz2 busybox-w32-0863e1a576c4b26bb87564b3a403f1094814f1aa.zip |
runit/*: convert to new-style "one file" applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/applets.src.h | 9 | ||||
-rw-r--r-- | runit/Config.src | 79 | ||||
-rw-r--r-- | runit/Kbuild.src | 11 | ||||
-rw-r--r-- | runit/chpst.c | 45 | ||||
-rw-r--r-- | runit/runsv.c | 12 | ||||
-rw-r--r-- | runit/runsvdir.c | 22 | ||||
-rw-r--r-- | runit/sv.c | 20 | ||||
-rw-r--r-- | runit/svlogd.c | 13 |
8 files changed, 107 insertions, 104 deletions
diff --git a/include/applets.src.h b/include/applets.src.h index c1ed0e82f..d243d89e1 100644 --- a/include/applets.src.h +++ b/include/applets.src.h | |||
@@ -95,7 +95,6 @@ IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp)) | |||
95 | IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) | 95 | IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) |
96 | IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) | 96 | IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) |
97 | IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 97 | IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
98 | IF_CHPST(APPLET(chpst, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
99 | IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 98 | IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
100 | IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP)) | 99 | IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP)) |
101 | IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) | 100 | IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) |
@@ -129,8 +128,6 @@ IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP)) | |||
129 | IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) | 128 | IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) |
130 | IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP)) | 129 | IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP)) |
131 | IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) | 130 | IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) |
132 | IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envdir)) | ||
133 | IF_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envuidgid)) | ||
134 | IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) | 131 | IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) |
135 | IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) | 132 | IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) |
136 | IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP)) | 133 | IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP)) |
@@ -288,8 +285,6 @@ IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) | |||
288 | IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts)) | 285 | IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts)) |
289 | IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) | 286 | IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) |
290 | IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP)) | 287 | IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP)) |
291 | IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
292 | IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
293 | IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP)) | 288 | IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP)) |
294 | IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) | 289 | IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) |
295 | IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) | 290 | IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) |
@@ -306,7 +301,6 @@ IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP)) | |||
306 | IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 301 | IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
307 | IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 302 | IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
308 | IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP)) | 303 | IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP)) |
309 | IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, setuidgid)) | ||
310 | IF_SHA1SUM(APPLET_NOEXEC(sha1sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha1sum)) | 304 | IF_SHA1SUM(APPLET_NOEXEC(sha1sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha1sum)) |
311 | IF_SHA3SUM(APPLET_NOEXEC(sha3sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha3sum)) | 305 | IF_SHA3SUM(APPLET_NOEXEC(sha3sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha3sum)) |
312 | IF_SHA256SUM(APPLET_NOEXEC(sha256sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha256sum)) | 306 | IF_SHA256SUM(APPLET_NOEXEC(sha256sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha256sum)) |
@@ -315,7 +309,6 @@ IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP)) | |||
315 | IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP)) | 309 | IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP)) |
316 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */ | 310 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */ |
317 | IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP)) | 311 | IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP)) |
318 | IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, softlimit)) | ||
319 | IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) | 312 | IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) |
320 | IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) | 313 | IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) |
321 | IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon)) | 314 | IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon)) |
@@ -326,8 +319,6 @@ IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) | |||
326 | IF_SU(APPLET(su, BB_DIR_BIN, BB_SUID_REQUIRE)) | 319 | IF_SU(APPLET(su, BB_DIR_BIN, BB_SUID_REQUIRE)) |
327 | IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP)) | 320 | IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP)) |
328 | IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) | 321 | IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) |
329 | IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
330 | IF_SVLOGD(APPLET(svlogd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
331 | IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapoff)) | 322 | IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapoff)) |
332 | IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon)) | 323 | IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon)) |
333 | IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) | 324 | IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) |
diff --git a/runit/Config.src b/runit/Config.src index 9db974002..8cde89680 100644 --- a/runit/Config.src +++ b/runit/Config.src | |||
@@ -7,83 +7,4 @@ menu "Runit Utilities" | |||
7 | 7 | ||
8 | INSERT | 8 | INSERT |
9 | 9 | ||
10 | config RUNSV | ||
11 | bool "runsv" | ||
12 | default y | ||
13 | help | ||
14 | runsv starts and monitors a service and optionally an appendant log | ||
15 | service. | ||
16 | |||
17 | config RUNSVDIR | ||
18 | bool "runsvdir" | ||
19 | default y | ||
20 | help | ||
21 | runsvdir starts a runsv process for each subdirectory, or symlink to | ||
22 | a directory, in the services directory dir, up to a limit of 1000 | ||
23 | subdirectories, and restarts a runsv process if it terminates. | ||
24 | |||
25 | config FEATURE_RUNSVDIR_LOG | ||
26 | bool "Enable scrolling argument log" | ||
27 | depends on RUNSVDIR | ||
28 | default n | ||
29 | help | ||
30 | Enable feature where second parameter of runsvdir holds last error | ||
31 | message (viewable via top/ps). Otherwise (feature is off | ||
32 | or no parameter), error messages go to stderr only. | ||
33 | |||
34 | config SV | ||
35 | bool "sv" | ||
36 | default y | ||
37 | help | ||
38 | sv reports the current status and controls the state of services | ||
39 | monitored by the runsv supervisor. | ||
40 | |||
41 | config SV_DEFAULT_SERVICE_DIR | ||
42 | string "Default directory for services" | ||
43 | default "/var/service" | ||
44 | depends on SV | ||
45 | help | ||
46 | Default directory for services. | ||
47 | Defaults to "/var/service" | ||
48 | |||
49 | config SVLOGD | ||
50 | bool "svlogd" | ||
51 | default y | ||
52 | help | ||
53 | svlogd continuously reads log data from its standard input, optionally | ||
54 | filters log messages, and writes the data to one or more automatically | ||
55 | rotated logs. | ||
56 | |||
57 | config CHPST | ||
58 | bool "chpst" | ||
59 | default y | ||
60 | help | ||
61 | chpst changes the process state according to the given options, and | ||
62 | execs specified program. | ||
63 | |||
64 | config SETUIDGID | ||
65 | bool "setuidgid" | ||
66 | default y | ||
67 | help | ||
68 | Sets soft resource limits as specified by options | ||
69 | |||
70 | config ENVUIDGID | ||
71 | bool "envuidgid" | ||
72 | default y | ||
73 | help | ||
74 | Sets $UID to account's uid and $GID to account's gid | ||
75 | |||
76 | config ENVDIR | ||
77 | bool "envdir" | ||
78 | default y | ||
79 | help | ||
80 | Sets various environment variables as specified by files | ||
81 | in the given directory | ||
82 | |||
83 | config SOFTLIMIT | ||
84 | bool "softlimit" | ||
85 | default y | ||
86 | help | ||
87 | Sets soft resource limits as specified by options | ||
88 | |||
89 | endmenu | 10 | endmenu |
diff --git a/runit/Kbuild.src b/runit/Kbuild.src index 0fce95507..6b4fb7470 100644 --- a/runit/Kbuild.src +++ b/runit/Kbuild.src | |||
@@ -7,14 +7,3 @@ | |||
7 | lib-y:= | 7 | lib-y:= |
8 | 8 | ||
9 | INSERT | 9 | INSERT |
10 | |||
11 | lib-$(CONFIG_RUNSV) += runsv.o | ||
12 | lib-$(CONFIG_RUNSVDIR) += runsvdir.o | ||
13 | lib-$(CONFIG_SV) += sv.o | ||
14 | lib-$(CONFIG_SVLOGD) += svlogd.o | ||
15 | lib-$(CONFIG_CHPST) += chpst.o | ||
16 | |||
17 | lib-$(CONFIG_ENVDIR) += chpst.o | ||
18 | lib-$(CONFIG_ENVUIDGID) += chpst.o | ||
19 | lib-$(CONFIG_SETUIDGID) += chpst.o | ||
20 | lib-$(CONFIG_SOFTLIMIT) += chpst.o | ||
diff --git a/runit/chpst.c b/runit/chpst.c index 71af29f66..301cdd08a 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -26,7 +26,50 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
26 | */ | 26 | */ |
27 | 27 | ||
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 | |
30 | //config:config CHPST | ||
31 | //config: bool "chpst" | ||
32 | //config: default y | ||
33 | //config: help | ||
34 | //config: chpst changes the process state according to the given options, and | ||
35 | //config: execs specified program. | ||
36 | //config: | ||
37 | //config:config SETUIDGID | ||
38 | //config: bool "setuidgid" | ||
39 | //config: default y | ||
40 | //config: help | ||
41 | //config: Sets soft resource limits as specified by options | ||
42 | //config: | ||
43 | //config:config ENVUIDGID | ||
44 | //config: bool "envuidgid" | ||
45 | //config: default y | ||
46 | //config: help | ||
47 | //config: Sets $UID to account's uid and $GID to account's gid | ||
48 | //config: | ||
49 | //config:config ENVDIR | ||
50 | //config: bool "envdir" | ||
51 | //config: default y | ||
52 | //config: help | ||
53 | //config: Sets various environment variables as specified by files | ||
54 | //config: in the given directory | ||
55 | //config: | ||
56 | //config:config SOFTLIMIT | ||
57 | //config: bool "softlimit" | ||
58 | //config: default y | ||
59 | //config: help | ||
60 | //config: Sets soft resource limits as specified by options | ||
61 | |||
62 | //applet:IF_CHPST(APPLET(chpst, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
63 | //applet:IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envdir)) | ||
64 | //applet:IF_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envuidgid)) | ||
65 | //applet:IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, setuidgid)) | ||
66 | //applet:IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, softlimit)) | ||
67 | |||
68 | //kbuild:lib-$(CONFIG_CHPST) += chpst.o | ||
69 | //kbuild:lib-$(CONFIG_ENVDIR) += chpst.o | ||
70 | //kbuild:lib-$(CONFIG_ENVUIDGID) += chpst.o | ||
71 | //kbuild:lib-$(CONFIG_SETUIDGID) += chpst.o | ||
72 | //kbuild:lib-$(CONFIG_SOFTLIMIT) += chpst.o | ||
30 | 73 | ||
31 | //usage:#define chpst_trivial_usage | 74 | //usage:#define chpst_trivial_usage |
32 | //usage: "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" | 75 | //usage: "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" |
diff --git a/runit/runsv.c b/runit/runsv.c index 6cf5bcc29..4b18d12d5 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -26,7 +26,17 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
26 | */ | 26 | */ |
27 | 27 | ||
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 | |
30 | //config:config RUNSV | ||
31 | //config: bool "runsv" | ||
32 | //config: default y | ||
33 | //config: help | ||
34 | //config: runsv starts and monitors a service and optionally an appendant log | ||
35 | //config: service. | ||
36 | |||
37 | //applet:IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
38 | |||
39 | //kbuild:lib-$(CONFIG_RUNSV) += runsv.o | ||
30 | 40 | ||
31 | //usage:#define runsv_trivial_usage | 41 | //usage:#define runsv_trivial_usage |
32 | //usage: "DIR" | 42 | //usage: "DIR" |
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index b4c0b2ef0..b3d9e7390 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -26,7 +26,27 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
26 | */ | 26 | */ |
27 | 27 | ||
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 | |
30 | //config:config RUNSVDIR | ||
31 | //config: bool "runsvdir" | ||
32 | //config: default y | ||
33 | //config: help | ||
34 | //config: runsvdir starts a runsv process for each subdirectory, or symlink to | ||
35 | //config: a directory, in the services directory dir, up to a limit of 1000 | ||
36 | //config: subdirectories, and restarts a runsv process if it terminates. | ||
37 | //config: | ||
38 | //config:config FEATURE_RUNSVDIR_LOG | ||
39 | //config: bool "Enable scrolling argument log" | ||
40 | //config: depends on RUNSVDIR | ||
41 | //config: default n | ||
42 | //config: help | ||
43 | //config: Enable feature where second parameter of runsvdir holds last error | ||
44 | //config: message (viewable via top/ps). Otherwise (feature is off | ||
45 | //config: or no parameter), error messages go to stderr only. | ||
46 | |||
47 | //applet:IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
48 | |||
49 | //kbuild:lib-$(CONFIG_RUNSVDIR) += runsvdir.o | ||
30 | 50 | ||
31 | //usage:#define runsvdir_trivial_usage | 51 | //usage:#define runsvdir_trivial_usage |
32 | //usage: "[-P] [-s SCRIPT] DIR" | 52 | //usage: "[-P] [-s SCRIPT] DIR" |
diff --git a/runit/sv.c b/runit/sv.c index 825e9d45b..de8a0d8a4 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -151,7 +151,25 @@ Exit Codes | |||
151 | */ | 151 | */ |
152 | 152 | ||
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 | |
155 | //config:config SV | ||
156 | //config: bool "sv" | ||
157 | //config: default y | ||
158 | //config: help | ||
159 | //config: sv reports the current status and controls the state of services | ||
160 | //config: monitored by the runsv supervisor. | ||
161 | //config: | ||
162 | //config:config SV_DEFAULT_SERVICE_DIR | ||
163 | //config: string "Default directory for services" | ||
164 | //config: default "/var/service" | ||
165 | //config: depends on SV | ||
166 | //config: help | ||
167 | //config: Default directory for services. | ||
168 | //config: Defaults to "/var/service" | ||
169 | |||
170 | //applet:IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
171 | |||
172 | //kbuild:lib-$(CONFIG_SV) += sv.o | ||
155 | 173 | ||
156 | //usage:#define sv_trivial_usage | 174 | //usage:#define sv_trivial_usage |
157 | //usage: "[-v] [-w SEC] CMD SERVICE_DIR..." | 175 | //usage: "[-v] [-w SEC] CMD SERVICE_DIR..." |
diff --git a/runit/svlogd.c b/runit/svlogd.c index c080b9acc..dbe8df65c 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -26,7 +26,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
26 | */ | 26 | */ |
27 | 27 | ||
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 */ | ||
30 | 29 | ||
31 | /* | 30 | /* |
32 | Config files | 31 | Config files |
@@ -125,6 +124,18 @@ log message, you can use a pattern like this instead | |||
125 | -*: *: pid * | 124 | -*: *: pid * |
126 | */ | 125 | */ |
127 | 126 | ||
127 | //config:config SVLOGD | ||
128 | //config: bool "svlogd" | ||
129 | //config: default y | ||
130 | //config: help | ||
131 | //config: svlogd continuously reads log data from its standard input, optionally | ||
132 | //config: filters log messages, and writes the data to one or more automatically | ||
133 | //config: rotated logs. | ||
134 | |||
135 | //applet:IF_SVLOGD(APPLET(svlogd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
136 | |||
137 | //kbuild:lib-$(CONFIG_SVLOGD) += svlogd.o | ||
138 | |||
128 | //usage:#define svlogd_trivial_usage | 139 | //usage:#define svlogd_trivial_usage |
129 | //usage: "[-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR..." | 140 | //usage: "[-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR..." |
130 | //usage:#define svlogd_full_usage "\n\n" | 141 | //usage:#define svlogd_full_usage "\n\n" |