diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-18 18:42:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-18 22:40:09 +0200 |
commit | d34f300db6d7a726759f4d820a61f19eacf11288 (patch) | |
tree | 3e722dad3550a08dfd5f618c8dd5fff50808674c /sysklogd/klogd.c | |
parent | 2735bc00e35c5fd8eec6d656f4d8a17ee2630c2a (diff) | |
download | busybox-w32-d34f300db6d7a726759f4d820a61f19eacf11288.tar.gz busybox-w32-d34f300db6d7a726759f4d820a61f19eacf11288.tar.bz2 busybox-w32-d34f300db6d7a726759f4d820a61f19eacf11288.zip |
sysklogd/*: convert to new-style "one file" applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 432ded153..ca8b848bd 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -16,6 +16,39 @@ | |||
16 | * | 16 | * |
17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
18 | */ | 18 | */ |
19 | //config:config KLOGD | ||
20 | //config: bool "klogd" | ||
21 | //config: default y | ||
22 | //config: help | ||
23 | //config: klogd is a utility which intercepts and logs all | ||
24 | //config: messages from the Linux kernel and sends the messages | ||
25 | //config: out to the 'syslogd' utility so they can be logged. If | ||
26 | //config: you wish to record the messages produced by the kernel, | ||
27 | //config: you should enable this option. | ||
28 | //config: | ||
29 | //config:comment "klogd should not be used together with syslog to kernel printk buffer" | ||
30 | //config: depends on KLOGD && FEATURE_KMSG_SYSLOG | ||
31 | //config: | ||
32 | //config:config FEATURE_KLOGD_KLOGCTL | ||
33 | //config: bool "Use the klogctl() interface" | ||
34 | //config: default y | ||
35 | //config: depends on KLOGD | ||
36 | //config: select PLATFORM_LINUX | ||
37 | //config: help | ||
38 | //config: The klogd applet supports two interfaces for reading | ||
39 | //config: kernel messages. Linux provides the klogctl() interface | ||
40 | //config: which allows reading messages from the kernel ring buffer | ||
41 | //config: independently from the file system. | ||
42 | //config: | ||
43 | //config: If you answer 'N' here, klogd will use the more portable | ||
44 | //config: approach of reading them from /proc or a device node. | ||
45 | //config: However, this method requires the file to be available. | ||
46 | //config: | ||
47 | //config: If in doubt, say 'Y'. | ||
48 | |||
49 | //applet:IF_KLOGD(APPLET(klogd, BB_DIR_SBIN, BB_SUID_DROP)) | ||
50 | |||
51 | //kbuild:lib-$(CONFIG_KLOGD) += klogd.o | ||
19 | 52 | ||
20 | //usage:#define klogd_trivial_usage | 53 | //usage:#define klogd_trivial_usage |
21 | //usage: "[-c N] [-n]" | 54 | //usage: "[-c N] [-n]" |