@ -6,7 +6,6 @@ START=21
STOP=89
STOP=89
USE_PROCD=1
USE_PROCD=1
NAME=logread
PROG=/sbin/logread
PROG=/sbin/logread
start_service_file()
start_service_file()
@ -15,13 +14,13 @@ start_service_file()
local log_file log_size
local log_file log_size
config_get log_file $1 log_file
config_get log_file $1 log_file
config_get log_size $1 log_size
config_get log_size $1 log_size
[ -z "${log_file}" ] && return
[ -z "${log_file}" ] && return
procd_open_instance
procd_open_instance
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
procd_close_instance
procd_close_instance
}
}
@ -38,7 +37,7 @@ start_service_remote()
procd_open_instance
procd_open_instance
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
[ "${log_proto}" != "udp" ] || procd_append_param command -u
[ "${log_proto}" != "udp" ] || procd_append_param command -u
procd_close_instance
procd_close_instance
}
}