From 4a6338d857fb3f1e8e083f7e3e199c3ffa2e7399 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 15 Jul 2016 14:25:02 -0700 Subject: [PATCH] Correct/complete Scott Sumate's LOGFILE enhancement Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 2 +- Shorewall/manpages/shorewall.conf.xml | 7 +++++-- Shorewall6/manpages/shorewall6.conf.xml | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 201714046..5015936b4 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -191,7 +191,7 @@ setup_logread() { else g_logread="logread" fi - elif [ "$LOGFILE" == "systemd" ]; then + elif [ "$LOGFILE" = "systemd" ]; then g_logread="journalctl -r" elif [ -r $LOGFILE ]; then if qt mywhich tac; then diff --git a/Shorewall/manpages/shorewall.conf.xml b/Shorewall/manpages/shorewall.conf.xml index 324f76729..d263b5787 100644 --- a/Shorewall/manpages/shorewall.conf.xml +++ b/Shorewall/manpages/shorewall.conf.xml @@ -1354,7 +1354,7 @@ net all DROP infothen the chain name is 'net-all' LOGFILE=[pathname] + role="bold">LOGFILE=[pathname|] This parameter tells the /sbin/shorewall program where to look @@ -1364,7 +1364,10 @@ net all DROP infothen the chain name is 'net-all' log, and hits commands. If not assigned or if assigned an empty value, /var/log/messages is assumed. For further information, see http://www.shorewall.net/shorewall_logging.html. + url="/shorewall_logging.html">http://www.shorewall.net/shorewall_logging.html. + Beginning with Shorewall 5.0.10.1, you may specify + to use journelctl -r to + read the log. diff --git a/Shorewall6/manpages/shorewall6.conf.xml b/Shorewall6/manpages/shorewall6.conf.xml index 19306eb66..2d8afb7fe 100644 --- a/Shorewall6/manpages/shorewall6.conf.xml +++ b/Shorewall6/manpages/shorewall6.conf.xml @@ -1166,7 +1166,7 @@ net all DROP infothen the chain name is 'net-all' LOGFILE=[pathname] + role="bold">LOGFILE=[pathname|] This parameter tells the /sbin/shorewall6 program where to @@ -1175,7 +1175,9 @@ net all DROP infothen the chain name is 'net-all' role="bold">logwatch, show log, and hits commands. If not assigned or if assigned an empty value, /var/log/messages is - assumed. + assumed. Beginning with Shorewall 5.0.10.1, you may specify + to use journelctl -r to + read the log.