forked from extern/shorewall_code
Fix log reading in the -lite packages
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f9af35ffbe
commit
a56a9d77d1
@ -94,9 +94,9 @@ get_config() {
|
|||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
||||||
|
|
||||||
if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then
|
if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then
|
||||||
LOGREAD="logread | tac"
|
g_logread="logread | tac"
|
||||||
elif [ -r $LOGFILE ]; then
|
elif [ -r $LOGFILE ]; then
|
||||||
LOGREAD="tac $LOGFILE"
|
g_logread="tac $LOGFILE"
|
||||||
else
|
else
|
||||||
echo "LOGFILE ($LOGFILE) does not exist!" >&2
|
echo "LOGFILE ($LOGFILE) does not exist!" >&2
|
||||||
exit 2
|
exit 2
|
||||||
@ -469,6 +469,7 @@ g_use_verbosity=
|
|||||||
g_noroutes=
|
g_noroutes=
|
||||||
g_timestamp=
|
g_timestamp=
|
||||||
g_recovering=
|
g_recovering=
|
||||||
|
g_logread=
|
||||||
|
|
||||||
finished=0
|
finished=0
|
||||||
|
|
||||||
|
@ -94,9 +94,9 @@ get_config() {
|
|||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
||||||
|
|
||||||
if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then
|
if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then
|
||||||
LOGREAD="logread | tac"
|
g_logread="logread | tac"
|
||||||
elif [ -r $LOGFILE ]; then
|
elif [ -r $LOGFILE ]; then
|
||||||
LOGREAD="tac $LOGFILE"
|
g_logread="tac $LOGFILE"
|
||||||
else
|
else
|
||||||
echo "LOGFILE ($LOGFILE) does not exist!" >&2
|
echo "LOGFILE ($LOGFILE) does not exist!" >&2
|
||||||
exit 2
|
exit 2
|
||||||
@ -453,6 +453,7 @@ g_noroutes=
|
|||||||
g_timestamp=
|
g_timestamp=
|
||||||
g_recovering=
|
g_recovering=
|
||||||
g_purge=
|
g_purge=
|
||||||
|
g_logread=
|
||||||
|
|
||||||
finished=0
|
finished=0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user