[Buildroot] [PATCH v2 8/8] syslog-ng: add logging configuration file

Chris Packham judge.packham at gmail.com
Sat Sep 29 03:14:37 UTC 2018


On Sat, 29 Sep 2018, 2:50 PM Carlos Santos, <casantos at datacom.com.br> wrote:

> Provide a template to help users to customize syslog-ng without editting
> the startup script. Mostly warn about options that must not be used.
>
> This file is also useful as an example for init script authors.
>
> Signed-off-by: Carlos Santos <casantos at datacom.com.br>
> ---
> Changes v1->v2
> - Document that -F/--foreground must not be used
> ---
>  package/syslog-ng/etc.default.logging | 14 ++++++++++++++
>  package/syslog-ng/syslog-ng.mk        |  2 ++
>  2 files changed, 16 insertions(+)
>  create mode 100644 package/syslog-ng/etc.default.logging
>
> diff --git a/package/syslog-ng/etc.default.logging
> b/package/syslog-ng/etc.default.logging
> new file mode 100644
> index 0000000000..eda594aaef
> --- /dev/null
> +++ b/package/syslog-ng/etc.default.logging
> @@ -0,0 +1,14 @@
> +#
> +# /etc/default/logging (syslog-ng version)
> +#
> +
> +# Use SYSLOG_NG_ARGS to pass additional arguments to rsyslogd.
>

s/rsyslog/syslog-ng/

+# - Do NOT use "-F/--foreground", "--help"/"-h", "--version"/"-V",
> "--stderr"/"-e",
> +#   "--syntax-only"/"-s", or
> "--process-mode=<background|safe-background>", since
> +#   they will break the startup script.
> +# - Do NOT use "--debug"/"-d", since debugging does not work when running
> in
> +#   background.
> +# SYSLOG_NG_ARGS="" # (default value)
> +
> +# Uncomment the line below to disable this service
> +# ENABLED="no"
> diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/
> syslog-ng.mk
> index 793fea0972..a837dad841 100644
> --- a/package/syslog-ng/syslog-ng.mk
> +++ b/package/syslog-ng/syslog-ng.mk
> @@ -95,6 +95,8 @@ endif
>  define SYSLOG_NG_INSTALL_INIT_SYSV
>         $(INSTALL) -m 0755 -D package/syslog-ng/S01logging \
>                 $(TARGET_DIR)/etc/init.d/S01logging
> +       $(INSTALL) -m 0644 -D package/syslog-ng/etc.default.logging \
> +               $(TARGET_DIR)/etc/default/logging
>  endef
>
>  # By default syslog-ng installs a number of sample configuration
> --
> 2.17.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180929/25dc29e2/attachment-0002.html>


More information about the buildroot mailing list