diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-22 00:38:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-22 00:38:24 +0100 |
commit | 3a0f690dcd06ff693a0b76d764739425600ec1f1 (patch) | |
tree | 2c037e53c4a2c87c9b6cd4cd57f169baa1baf5c7 | |
parent | e8f565c1eeba336fa13ce8216464c9daedd36f76 (diff) | |
download | busybox-w32-3a0f690dcd06ff693a0b76d764739425600ec1f1.tar.gz busybox-w32-3a0f690dcd06ff693a0b76d764739425600ec1f1.tar.bz2 busybox-w32-3a0f690dcd06ff693a0b76d764739425600ec1f1.zip |
svlogd: extend usage text. +70 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/usage.src.h | 7 | ||||
-rw-r--r-- | runit/svlogd.c | 17 |
2 files changed, 17 insertions, 7 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index a4776a2d6..9300b3ce8 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -3538,13 +3538,6 @@ INSERT | |||
3538 | "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \ | 3538 | "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \ |
3539 | "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \ | 3539 | "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \ |
3540 | 3540 | ||
3541 | #define svlogd_trivial_usage \ | ||
3542 | "[-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR..." | ||
3543 | #define svlogd_full_usage "\n\n" \ | ||
3544 | "Continuously read log data from stdin, optionally\n" \ | ||
3545 | "filter log messages, and write the data to one or more automatically\n" \ | ||
3546 | "rotated logs" \ | ||
3547 | |||
3548 | #define swapoff_trivial_usage \ | 3541 | #define swapoff_trivial_usage \ |
3549 | "[-a] [DEVICE]" | 3542 | "[-a] [DEVICE]" |
3550 | #define swapoff_full_usage "\n\n" \ | 3543 | #define swapoff_full_usage "\n\n" \ |
diff --git a/runit/svlogd.c b/runit/svlogd.c index c3ff4e9c1..cfa20a773 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -125,6 +125,23 @@ log message, you can use a pattern like this instead | |||
125 | -*: *: pid * | 125 | -*: *: pid * |
126 | */ | 126 | */ |
127 | 127 | ||
128 | //usage:#define svlogd_trivial_usage | ||
129 | //usage: "[-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR..." | ||
130 | //usage:#define svlogd_full_usage "\n\n" | ||
131 | //usage: "Continuously read log data from stdin and write to rotated log files in DIRs" | ||
132 | //usage: "\n" | ||
133 | //usage: "\n""DIR/config file modifies behavior:" | ||
134 | //usage: "\n""sSIZE - when to rotate logs" | ||
135 | //usage: "\n""nNUM - number of files to retain" | ||
136 | /*usage: "\n""NNUM - min number files to retain" - confusing */ | ||
137 | /*usage: "\n""tSEC - rotate file if it get SEC seconds old" - confusing */ | ||
138 | //usage: "\n""!PROG - process rotated log with PROG" | ||
139 | /*usage: "\n""uIPADDR - send log over UDP" - unsupported */ | ||
140 | /*usage: "\n""UIPADDR - send log over UDP and DONT log" - unsupported */ | ||
141 | /*usage: "\n""pPFX - prefix each line with PFX" - unsupported */ | ||
142 | //usage: "\n""+,-PATTERN - (de)select line for logging" | ||
143 | //usage: "\n""E,ePATTERN - (de)select line for stderr" | ||
144 | |||
128 | #include <sys/poll.h> | 145 | #include <sys/poll.h> |
129 | #include <sys/file.h> | 146 | #include <sys/file.h> |
130 | #include "libbb.h" | 147 | #include "libbb.h" |