diff options
author | Denys Vlasenko | 2015-10-19 00:41:28 +0200 |
---|---|---|
committer | Denys Vlasenko | 2015-10-19 00:41:28 +0200 |
commit | 0863e1a576c4b26bb87564b3a403f1094814f1aa (patch) | |
tree | 5670b59149bfff4ad86acf008ac66abf0f7557da /runit/runsvdir.c | |
parent | 000eda41c084bae95d9e40a570cbdaa5ffd3d22e (diff) | |
download | busybox-0863e1a576c4b26bb87564b3a403f1094814f1aa.zip busybox-0863e1a576c4b26bb87564b3a403f1094814f1aa.tar.gz |
runit/*: convert to new-style "one file" applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r-- | runit/runsvdir.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index b4c0b2e..b3d9e73 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -26,7 +26,27 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */ -/* TODO: depends on runit_lib.c - review and reduce/eliminate */ + +//config:config RUNSVDIR +//config: bool "runsvdir" +//config: default y +//config: help +//config: runsvdir starts a runsv process for each subdirectory, or symlink to +//config: a directory, in the services directory dir, up to a limit of 1000 +//config: subdirectories, and restarts a runsv process if it terminates. +//config: +//config:config FEATURE_RUNSVDIR_LOG +//config: bool "Enable scrolling argument log" +//config: depends on RUNSVDIR +//config: default n +//config: help +//config: Enable feature where second parameter of runsvdir holds last error +//config: message (viewable via top/ps). Otherwise (feature is off +//config: or no parameter), error messages go to stderr only. + +//applet:IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP)) + +//kbuild:lib-$(CONFIG_RUNSVDIR) += runsvdir.o //usage:#define runsvdir_trivial_usage //usage: "[-P] [-s SCRIPT] DIR" |