Correct syslog_circular_buffer()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-11-02 14:29:06 -08:00
parent e74ff0ecd9
commit 3890a5c1fd

View File

@ -145,16 +145,8 @@ timed_read ()
# #
# Determine if 'syslog -C' is running # Determine if 'syslog -C' is running
# #
syslog_circular_buffer() { find_logger() {
local pid while read pid tty stat time path args; do
local tty
local flags
local time
local path
local args
local arg
ps w 2> /dev/null | while read pid tty stat time path args; do
case $path in case $path in
syslogd|*/syslogd) syslogd|*/syslogd)
for arg in $args; do for arg in $args; do
@ -180,6 +172,18 @@ syslog_circular_buffer() {
return 1 return 1
} }
syslog_circular_buffer() {
local pid
local tty
local flags
local time
local path
local args
local arg
ps w 2> /dev/null | find_logger
}
setup_logread() { setup_logread() {
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages [ -z "$LOGFILE" ] && LOGFILE=/var/log/messages