diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-11 15:07:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-11 15:07:44 +0000 |
commit | 4221e90ae468acc4b6c43faa36aee5160d2738c6 (patch) | |
tree | f9a100c67f7aff66cd948d6e85fa8bca6ac684ff /docs | |
parent | a19e64933c600b7f05232ad80bb5db85c115e42d (diff) | |
download | busybox-w32-4221e90ae468acc4b6c43faa36aee5160d2738c6.tar.gz busybox-w32-4221e90ae468acc4b6c43faa36aee5160d2738c6.tar.bz2 busybox-w32-4221e90ae468acc4b6c43faa36aee5160d2738c6.zip |
ftpd: stop unconditional logging to syslog. This was the only applet
which was doing it. Added option -S to enable it when desired.
function old new delta
packed_usage 25647 25666 +19
ftpd_main 1826 1825 -1
Diffstat (limited to 'docs')
-rw-r--r-- | docs/logging_and_backgrounding.txt | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/logging_and_backgrounding.txt b/docs/logging_and_backgrounding.txt index 39f015883..62a6d1550 100644 --- a/docs/logging_and_backgrounding.txt +++ b/docs/logging_and_backgrounding.txt | |||
@@ -27,18 +27,16 @@ acpid - auto-backgrounds unless -d | |||
27 | crond - auto-backgrounds unless -f, logs to syslog unless -d or -L. | 27 | crond - auto-backgrounds unless -f, logs to syslog unless -d or -L. |
28 | option -d logs to stderr, -L FILE logs to FILE | 28 | option -d logs to stderr, -L FILE logs to FILE |
29 | devfsd - (obsolete) | 29 | devfsd - (obsolete) |
30 | dnsd - option -d makes it auto-background and log to syslog | 30 | dnsd - option -d makes it background and log to syslog |
31 | fakeidentd - inetd service. Auto-backgrounds and logs to syslog | 31 | fakeidentd - inetd service. Auto-backgrounds and logs to syslog |
32 | if no -f and no -i and no -w (-i is "inetd service" flag, | 32 | if no -f and no -i and no -w (-i is "inetd service" flag, |
33 | -w is "inetd-wait service" flag) | 33 | -w is "inetd-wait service" flag) |
34 | ftpd - inetd service. Logs to syslog always, with -v logs to strerr too | 34 | ftpd - inetd service. Logs to syslog with -S, with -v logs to strerr too |
35 | httpd - auto-backgrounds unless -f or -i | 35 | httpd - auto-backgrounds unless -f or -i (-i is "inetd service" flag) |
36 | (-i is "inetd service" flag) | ||
37 | inetd - auto-backgrounds unless -f, logs to syslog unless -e | 36 | inetd - auto-backgrounds unless -f, logs to syslog unless -e |
38 | klogd - auto-backgrounds unless -n | 37 | klogd - auto-backgrounds unless -n |
39 | syslogd - auto-backgrounds unless -n | 38 | syslogd - auto-backgrounds unless -n |
40 | telnetd - auto-backgrounds unless -f or -i | 39 | telnetd - auto-backgrounds unless -f or -i (-i is "inetd service" flag) |
41 | (-i is "inetd service" flag) | ||
42 | udhcpc - auto-backgrounds unless -f after lease is obtained, | 40 | udhcpc - auto-backgrounds unless -f after lease is obtained, |
43 | option -b makes it background sooner (when lease attempt | 41 | option -b makes it background sooner (when lease attempt |
44 | fails and retries start), | 42 | fails and retries start), |
@@ -48,9 +46,18 @@ udhcpd - auto-backgrounds and do not log to stderr unless -f, | |||
48 | otherwise logs to stderr, but option -S makes it log *also* to syslog | 46 | otherwise logs to stderr, but option -S makes it log *also* to syslog |
49 | zcip - auto-backgrounds and logs *also* to syslog unless -f | 47 | zcip - auto-backgrounds and logs *also* to syslog unless -f |
50 | 48 | ||
49 | Total: 13 applets (+1 obsolete), | ||
50 | 4 log to syslog by default (crond fakeidentd inetd zcip), | ||
51 | 5 never log to syslog (acpid httpd telnetd klogd syslogd, last two | ||
52 | - for obviously correct reasons), | ||
53 | there are no daemons which always log to syslog, | ||
54 | 12 auto-background if not run as inetd servies (all except dnsd. | ||
55 | Note that there is no "standard" dnsd AFAIKS). But see below | ||
56 | for daemons (tcpsvd etc) which don't auto-background. | ||
57 | |||
51 | miscutils/crond.c: logmode = LOGMODE_SYSLOG; | 58 | miscutils/crond.c: logmode = LOGMODE_SYSLOG; |
52 | networking/dnsd.c: logmode = LOGMODE_SYSLOG; | 59 | networking/dnsd.c: logmode = LOGMODE_SYSLOG; |
53 | networking/ftpd.c: logmode = LOGMODE_SYSLOG; | 60 | networking/ftpd.c: logmode = LOGMODE_NONE; |
54 | networking/ftpd.c: logmode |= LOGMODE_SYSLOG; | 61 | networking/ftpd.c: logmode |= LOGMODE_SYSLOG; |
55 | networking/inetd.c: logmode = LOGMODE_SYSLOG; | 62 | networking/inetd.c: logmode = LOGMODE_SYSLOG; |
56 | networking/isrv_identd.c: logmode = LOGMODE_SYSLOG; | 63 | networking/isrv_identd.c: logmode = LOGMODE_SYSLOG; |
@@ -63,7 +70,7 @@ networking/udhcp/dhcpd.c: logmode |= LOGMODE_SYSLOG; | |||
63 | networking/zcip.c: logmode |= LOGMODE_SYSLOG; | 70 | networking/zcip.c: logmode |= LOGMODE_SYSLOG; |
64 | 71 | ||
65 | 72 | ||
66 | These daemons seem to never auto-background/log to syslog: | 73 | These daemons never auto-background and never log to syslog: |
67 | 74 | ||
68 | lpd - inetd service. Has nothing to log so far, though | 75 | lpd - inetd service. Has nothing to log so far, though |
69 | dhcprelay - standard behavior | 76 | dhcprelay - standard behavior |