Skip to content

Commit e472e53

Browse files
committed
cupsd.conf: Remove IdleExitTimeout if no ondemand support
There are distributions using CUPS without ondemand support, where IdleExitTimeout in cupsd.conf causes error in logs... Related #1215
1 parent e837392 commit e472e53

3 files changed

Lines changed: 1595 additions & 1164 deletions

File tree

conf/cupsd.conf.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ DefaultAuthType Basic
2727

2828
# Web interface setting...
2929
WebInterface @CUPS_WEBIF@
30-
31-
# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
32-
IdleExitTimeout @EXIT_TIMEOUT@
30+
@EXIT_TIMEOUT@
3331

3432
# Restrict access to the server...
3533
<Location />

config-scripts/cups-defaults.m4

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,19 @@ AS_IF([test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes], [
395395
])
396396
AC_SUBST([SYSTEMD_WANTED_BY])
397397

398-
dnl Set default value of IdleExitTimeout
399-
AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [
400-
AS_IF([test "x$withval" = "xno"], [
401-
EXIT_TIMEOUT=0
398+
dnl Set default value of IdleExitTimeout if we have an ondemand support
399+
AS_IF([test x$with_ondemand != xno], [
400+
AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [
401+
AS_IF([test "x$withval" = "xno"], [
402+
EXIT_TIMEOUT="IdleExitTimeout 0"
403+
], [
404+
EXIT_TIMEOUT="IdleExitTimeout $withval"
405+
])
402406
], [
403-
EXIT_TIMEOUT=$withval
407+
EXIT_TIMEOUT="IdleExitTimeout 60"
404408
])
405-
], [
406-
EXIT_TIMEOUT=60
409+
] ,[
410+
EXIT_TIMEOUT=""
407411
])
408412

409413
AC_SUBST([EXIT_TIMEOUT])

0 commit comments

Comments
 (0)