diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 030978216..386b1f6df 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -92,7 +92,7 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages - if ( ps ax 2> /dev/null | qt grep 'syslogd.*-C' ) ; then + if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread" elif [ -f $LOGFILE ]; then LOGREAD="cat $LOGFILE" diff --git a/Shorewall/shorewall b/Shorewall/shorewall index e94c6bd15..ade219a93 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -128,7 +128,7 @@ get_config() { [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages - if ( ps ax 2> /dev/null | qt grep 'syslogd.*-C' ) ; then + if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread" elif [ -f $LOGFILE ]; then LOGREAD="cat $LOGFILE"