package/sysklogd: add option for remote syslog retry delay
authorJoachim Wiberg <troglobit@gmail.com>
Fri, 22 Jan 2021 15:43:33 +0000 (16:43 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 24 Jan 2021 09:37:58 +0000 (10:37 +0100)
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sysklogd/Config.in
package/sysklogd/sysklogd.mk

index e9ee7f9321a6bb8362d94c625ea4f3e8f31061d4..3315a6ddc9ffb5f00fd4fadaf6abbc34a8495e0c 100644 (file)
@@ -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
index a07af9e91efd9cdbcebeb90da1613f09c8893e04..18d30400e1c9295cd1b6066d4809116a044421d0 100644 (file)
@@ -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)