---------------------------
- Added configure option --with-idle-exit-timeout (Issue #294)
+- Added --with-systemd-timeoutstartsec configure option (Issue #298)
- DigestOptions now are applied for MD5 Digest authentication defined
by RFC 2069 as well (Issue #287)
- Fixed compilation on Solaris (Issue #293)
])
AC_SUBST([EXIT_TIMEOUT])
+
+dnl set TimeoutStartSec for cups.service
+dnl - if used as --without-*, it sets TimeoutStartSec to infinity
+AC_ARG_WITH([systemd-timeoutstartsec],
+ AS_HELP_STRING([--with-systemd-timeoutstartsec],
+ [set TimeoutStartSec value in cups.service, default=default value in systemd]), [
+ AS_IF([ test "x$withval" = "xno" ], [
+ TIMEOUTSTARTSEC="TimeoutStartSec=infinity"
+ ], [
+ TIMEOUTSTARTSEC="TimeoutStartSec=$withval"
+ ])
+], [
+ TIMEOUTSTARTSEC=""
+])
+AC_SUBST([TIMEOUTSTARTSEC])
LIBOBJS
UNINSTALL_LANGUAGES
INSTALL_LANGUAGES
+TIMEOUTSTARTSEC
EXIT_TIMEOUT
SYSTEMD_WANTED_BY
CUPS_WEBIF
with_ipp_port
enable_webif
with_idle_exit_timeout
+with_systemd_timeoutstartsec
'
ac_precious_vars='build_alias
host_alias
--with-idle-exit-timeout
set the default value for IdleExitTimeout,
default=60
+ --with-systemd-timeoutstartsec
+ set TimeoutStartSec value in cups.service,
+ default=default value in systemd
Some influential environment variables:
CC C compiler command
+# Check whether --with-systemd-timeoutstartsec was given.
+if test ${with_systemd_timeoutstartsec+y}
+then :
+ withval=$with_systemd_timeoutstartsec;
+ if test "x$withval" = "xno"
+then :
+
+ TIMEOUTSTARTSEC="TimeoutStartSec=infinity"
+
+else $as_nop
+
+ TIMEOUTSTARTSEC="TimeoutStartSec=$withval"
+
+fi
+
+else $as_nop
+
+ TIMEOUTSTARTSEC=""
+
+fi
+
+
+
+
INSTALL_LANGUAGES=""
UNINSTALL_LANGUAGES=""
LANGFILES=""
ExecStart=@sbindir@/cupsd -l
Type=notify
Restart=on-failure
+@TIMEOUTSTARTSEC@
[Install]
Also=cups.socket cups.path