mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-27 05:01:37 +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
|
# 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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user