From 8f00ac2e903f7d6a1256d0537759777be235b05a Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 4 Jan 2018 11:12:59 +0100 Subject: [PATCH] Do *not* redirect stdout/stderr of services by default Automatic redirection of output was introduced in v3.0 and for the upcoming v3.1 a configure option was added to disable it. By popular demand this patch flips the default. One now has to explicitly enable this feature to get redirection. Signed-off-by: Joachim Nilsson --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index afdf8259..f8d0af00 100644 --- a/configure.ac +++ b/configure.ac @@ -59,8 +59,8 @@ AC_ARG_ENABLE(watchdog, enable_watchdog=no]) AC_ARG_ENABLE(redirect-output, - AS_HELP_STRING([--disable-redirect-output], [Disable redirection of service output to /dev/null]),,[ - enable_redirect_output=yes]) + AS_HELP_STRING([--enable-redirect], [Redirect service output to /dev/null, default: no]),,[ + enable_redirect_output=no]) AC_ARG_ENABLE(inetd, AS_HELP_STRING([--disable-inetd], [Disable built-in inetd super server, default enabled]),,[ @@ -142,14 +142,14 @@ AS_IF([test "x$enable_progress" = "xyes"], [ AS_IF([test "x$enable_watchdog" = "xyes"], [ AC_DEFINE(BUILTIN_WATCHDOG, 1, [Enable built-in watchdog, kicks on /dev/watchdog])]) +AS_IF([test "x$enable_redirect_output" = "xyes"], [ + AC_DEFINE(REDIRECT_OUTPUT, 1, [Enable redirection of service output to /dev/null])]) + ### Disable features ########################################################################### AS_IF([test "x$enable_inetd" != "xno"], [ enable_inetd="yes" AC_DEFINE(INETD_ENABLED, 1, [Enable built-in inetd])]) -AS_IF([test "x$enable_redirect_output" != "xno"], [ - AC_DEFINE(REDIRECT_OUTPUT, 1, [Enable redirection of service output to /dev/null])]) - AS_IF([test "x$enable_logrotate" != "xno"], [ AC_DEFINE(LOGROTATE_ENABLED, 1, [Enable built-in rotation of /var/log/wtmp et al.])])