You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
8 months ago
|
diff -up cups-2.2.6/conf/cupsd.conf.in.idleexittimeout cups-2.2.6/conf/cupsd.conf.in
|
||
|
--- cups-2.2.6/conf/cupsd.conf.in.idleexittimeout 2017-11-01 15:57:53.000000000 +0100
|
||
|
+++ cups-2.2.6/conf/cupsd.conf.in 2021-11-29 11:45:37.416058954 +0100
|
||
|
@@ -22,6 +22,9 @@ DefaultAuthType Basic
|
||
|
# Web interface setting...
|
||
|
WebInterface @CUPS_WEBIF@
|
||
|
|
||
|
+# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
|
||
|
+IdleExitTimeout @EXIT_TIMEOUT@
|
||
|
+
|
||
|
# Restrict access to the server...
|
||
|
<Location />
|
||
|
Order allow,deny
|
||
|
diff -up cups-2.2.6/config-scripts/cups-defaults.m4.idleexittimeout cups-2.2.6/config-scripts/cups-defaults.m4
|
||
|
--- cups-2.2.6/config-scripts/cups-defaults.m4.idleexittimeout 2021-11-29 11:45:37.416058954 +0100
|
||
|
+++ cups-2.2.6/config-scripts/cups-defaults.m4 2021-11-29 11:46:31.680612421 +0100
|
||
|
@@ -425,3 +425,16 @@ esac
|
||
|
|
||
|
AC_SUBST(CUPS_WEBIF)
|
||
|
AC_DEFINE_UNQUOTED(CUPS_DEFAULT_WEBIF, $CUPS_DEFAULT_WEBIF)
|
||
|
+
|
||
|
+dnl Set default value of IdleExitTimeout
|
||
|
+AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [
|
||
|
+ AS_IF([test "x$withval" = "xno"], [
|
||
|
+ EXIT_TIMEOUT=0
|
||
|
+ ], [
|
||
|
+ EXIT_TIMEOUT=$withval
|
||
|
+ ])
|
||
|
+], [
|
||
|
+ EXIT_TIMEOUT=60
|
||
|
+])
|
||
|
+
|
||
|
+AC_SUBST([EXIT_TIMEOUT])
|