mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Add --disable-redirect-output to configure script
This patch makes it possible to control the default redirection of (misbehaving) services output to /dev/null. With this disabled, a service may write to its stdout/stderr and mess up the console. By default all service/run/tasks stdout/stderr is redirected. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
8198582c10
commit
e1bb5e3396
2 files changed
+11
-1
No files matched your search
@@ -58,6 +58,10 @@ AC_ARG_ENABLE(watchdog,
|
||||
AS_HELP_STRING([--enable-watchdog], [Enable built-in watchdog, uses /dev/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])
|
||||
|
||||
AC_ARG_ENABLE(inetd,
|
||||
AS_HELP_STRING([--disable-inetd], [Disable built-in inetd super server, default enabled]),,[
|
||||
enable_inetd=yes])
|
||||
@@ -148,6 +152,9 @@ 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