From: Joachim Wiberg Date: Fri, 22 Jan 2021 15:43:33 +0000 (+0100) Subject: package/sysklogd: add option for remote syslog retry delay X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36bbd4265f92de0c0fe6934fee8c7710a40ef49e;p=buildroot.git package/sysklogd: add option for remote syslog retry delay Signed-off-by: Joachim Wiberg Signed-off-by: Yann E. MORIN --- diff --git a/package/sysklogd/Config.in b/package/sysklogd/Config.in index e9ee7f9321..3315a6ddc9 100644 --- a/package/sysklogd/Config.in +++ b/package/sysklogd/Config.in @@ -15,6 +15,19 @@ config BR2_PACKAGE_SYSKLOGD if BR2_PACKAGE_SYSKLOGD +config BR2_PACKAGE_SYSKLOGD_REMOTE_DELAY + int "Retry delay (sec)" + default "180" + help + Retry delay (seconds) for sending to remote syslog servers. + + When set up to forward logs to a remote syslog server, the + network may not always be available. E.g., default interface + down, or no route to the remote server. This setting controls + the back-off time before retrying. + + Default: 180 seconds + config BR2_PACKAGE_SYSKLOGD_LOGGER bool "logger tool" help diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk index a07af9e91e..18d30400e1 100644 --- a/package/sysklogd/sysklogd.mk +++ b/package/sysklogd/sysklogd.mk @@ -9,7 +9,9 @@ SYSKLOGD_SITE = https://github.com/troglobit/sysklogd/releases/download/v$(SYSKL SYSKLOGD_LICENSE = BSD-3-Clause SYSKLOGD_LICENSE_FILES = LICENSE SYSKLOGD_CPE_ID_VALID = YES -SYSKLOGD_CONF_OPTS = --exec-prefix=/ +SYSKLOGD_CONF_OPTS = \ + --exec-prefix=/ \ + --with-suspend-time=$(BR2_PACKAGE_SYSKLOGD_REMOTE_DELAY) # Disable/Enable utilities ifeq ($(BR2_PACKAGE_SYSKLOGD_LOGGER),y)