mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
6fb070c75c
commit
8f00ac2e90
1 file changed
+5
-5
+5
-5
@@ -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.])])
|
||||
|
||||
|
||||
Reference in new issue
Block a user