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.
@@ -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.])])
