mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 20:51:27 +02:00
Correct syslog_circular_buffer()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e74ff0ecd9
commit
3890a5c1fd
@ -145,16 +145,8 @@ timed_read ()
|
||||
#
|
||||
# Determine if 'syslog -C' is running
|
||||
#
|
||||
syslog_circular_buffer() {
|
||||
local pid
|
||||
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
|
||||
find_logger() {
|
||||
while read pid tty stat time path args; do
|
||||
case $path in
|
||||
syslogd|*/syslogd)
|
||||
for arg in $args; do
|
||||
@ -180,6 +172,18 @@ syslog_circular_buffer() {
|
||||
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() {
|
||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user