]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: allow to log using tcp transport protocol
authorSami Kerola <kerolasa@iki.fi>
Fri, 5 Apr 2013 20:17:24 +0000 (21:17 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Apr 2013 14:31:28 +0000 (16:31 +0200)
commit68265d070d3041d16ab074ba25c610d6ef6c842e
tree1bb43a92fa768139a575f69fa90a2292ea54d692
parente442ab76b5483fb844c98df0faf2d69a303b7bb6
logger: allow to log using tcp transport protocol

This commit fixes error in usage() text, which claimed TCP is default
transport protocol.  That was not true, and neither it should be.  The
syslog messages has traditionally sent using UDP.

For the logger remains using UDP as first transport, but if it fails a
TCP connection is attempted.  If an user wishes remote logging can be
forced to use either UDP or TCP.  The service port for UDP is familiar
'syslog', for TCP the port 'syslog-conn' seems like reasonable default.

[kzak@redhat.com: - rename myopenlog to unix_socket(),
                  - always reset st to -1]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.1
misc-utils/logger.c