The variable contains `printers.target` by default. If CUPS is
configured with web interface and browsing enabled, `multi-user.target`
is added to the variable.
- Removed support for the (long deprecated and unused) `FontPath`,
`LPDConfigFile`, `RIPCache`, and `SMBConfigFile` directives in `cupsd.conf`
and `cups-files.conf`.
+- Add `SYSTEMD_WANTED_BY` variable for adding different targets into 'WantedBy'
+ directive in CUPS service file during configuration (Issue #144)
CUPS v2.3.3op2 (February 1, 2021)
dnl information.
dnl
+dnl Set a default systemd WantedBy directive
+SYSTEMD_WANTED_BY="printers.target"
+
dnl Default languages...
LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')"
AC_SUBST([CUPS_WEBIF])
AC_DEFINE_UNQUOTED([CUPS_DEFAULT_WEBIF], [$CUPS_DEFAULT_WEBIF], [Default WebInterface value.])
+
+AS_IF([test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes], [
+ SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target"], [
+ ])
+AC_SUBST([SYSTEMD_WANTED_BY])
[Install]
Also=cups.socket cups.path
-WantedBy=printer.target
+WantedBy=@SYSTEMD_WANTED_BY@