summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorPere Orga2011-04-11 03:29:49 +0200
committerDenys Vlasenko2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /sysklogd
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
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 'sysklogd')
-rw-r--r--sysklogd/klogd.c8
-rw-r--r--sysklogd/logger.c12
-rw-r--r--sysklogd/logread.c7
-rw-r--r--sysklogd/syslogd.c27
4 files changed, 54 insertions, 0 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index db32065..3992081 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -17,6 +17,14 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//usage:#define klogd_trivial_usage
+//usage: "[-c N] [-n]"
+//usage:#define klogd_full_usage "\n\n"
+//usage: "Kernel logger\n"
+//usage: "\nOptions:"
+//usage: "\n -c N Only messages with level < N are printed to console"
+//usage: "\n -n Run in foreground"
+
#include "libbb.h"
#include <syslog.h>
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 120f6a7..0fabd97 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -7,6 +7,18 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//usage:#define logger_trivial_usage
+//usage: "[OPTIONS] [MESSAGE]"
+//usage:#define logger_full_usage "\n\n"
+//usage: "Write MESSAGE (or stdin) to syslog\n"
+//usage: "\nOptions:"
+//usage: "\n -s Log to stderr as well as the system log"
+//usage: "\n -t TAG Log using the specified tag (defaults to user name)"
+//usage: "\n -p PRIO Priority (numeric or facility.level pair)"
+//usage:
+//usage:#define logger_example_usage
+//usage: "$ logger \"hello\"\n"
+
/*
* Done in syslogd_and_logger.c:
#include "libbb.h"
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index 52c97aa..ae0b219 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -9,6 +9,13 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//usage:#define logread_trivial_usage
+//usage: "[-f]"
+//usage:#define logread_full_usage "\n\n"
+//usage: "Show messages in syslogd's circular buffer\n"
+//usage: "\nOptions:"
+//usage: "\n -f Output data as log grows"
+
#include "libbb.h"
#include <sys/ipc.h>
#include <sys/sem.h>
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index f179dc5..7ddd3e4 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -13,6 +13,33 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//usage:#define syslogd_trivial_usage
+//usage: "[OPTIONS]"
+//usage:#define syslogd_full_usage "\n\n"
+//usage: "System logging utility.\n"
+//usage: "This version of syslogd ignores /etc/syslog.conf\n"
+//usage: "\nOptions:"
+//usage: "\n -n Run in foreground"
+//usage: "\n -O FILE Log to given file (default:/var/log/messages)"
+//usage: "\n -l N Set local log level"
+//usage: "\n -S Smaller logging output"
+//usage: IF_FEATURE_ROTATE_LOGFILE(
+//usage: "\n -s SIZE Max size (KB) before rotate (default:200KB, 0=off)"
+//usage: "\n -b N N rotated logs to keep (default:1, max=99, 0=purge)")
+//usage: IF_FEATURE_REMOTE_LOG(
+//usage: "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)"
+//usage: "\n -L Log locally and via network (default is network only if -R)")
+//usage: IF_FEATURE_SYSLOGD_DUP(
+//usage: "\n -D Drop duplicates")
+//usage: IF_FEATURE_IPC_SYSLOG(
+//usage: "\n -C[size(KiB)] Log to shared mem buffer (read it using logread)")
+/* NB: -Csize shouldn't have space (because size is optional) */
+/* //usage: "\n -m MIN Minutes between MARK lines (default:20, 0=off)" */
+//usage:
+//usage:#define syslogd_example_usage
+//usage: "$ syslogd -R masterlog:514\n"
+//usage: "$ syslogd -R 192.168.1.1:601\n"
+
/*
* Done in syslogd_and_logger.c:
#include "libbb.h"