[cups-devel] [MOD] STR #4755: In auto-shutdown mode ("-l") with activated web interface keep scheduler only running when interactive CGI scripts are used

Till Kamppeter noreply at cups.org
Sun Jan 10 14:00:44 PST 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

In the auto-shutdown mode ("-l") CUPS only shuts down on idle if the web
interface is de-activated ("WebInterface=no" in cupsd.conf). De-activating
the web interface does not only de-activates CUPS' built-in printer setup
tool and help system but also general download of files from CUPS. The file
download is needed by more applications then one thinks of, especially by
cupsctl or by apps which download PPD files of print queues via
http://<server>:631/printers/<printer>.ppd. cupsctl is even worse, as it
does not realize that it gets an error message HTML page from CUPS when
downloading cupsd.conf and after that writes cupsd.conf back, destroying
it.

So my quick-and-dirty approach for my mobile environment is to allow CUPS
to auto-shutdown when WebInterface=Yes is set. In my case it will be no
problem as I do not install the CGI scripts (/usr/lib/cups/cgi-bin/) on my
mobile device.

Generally I suggest to change the meaning of the WebInterface variable in
cupsd.conf, so that file download always works and "WebInterface=no" only
deactivates the CGI scripts. This way with activated CGI scripts
auto-shutdown is prevented so that the web wizards work correctly. With
de-activated web interface only the scripts are blocked and file downloads
stay working to assure that applications behave correctly.

Even better would be to make the CGI scripts/web wizards robust against
auto-shutdown of CUPS, simply continuing correctly when CUPS shuts down and
the next submission of a form fires up CUPS again.

Link: https://www.cups.org/str.php?L4755
Version: 2.1-current
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWktSLAAoJENujp6sI12Ijf7YP/2kTmfkXAJ89TLWYEvNoHXy/
q2GCbBdyNRkqaoB3a3CA2JjlqoSVu9vUNKKKoGuMsDlBcoaDhi4oHNgNomwcJ3qQ
5HyS3TXeDNBmj+59gio9HNN63SIxWWlLyjs4/tRD03uMB6kiR84ykrmksG/aQsDv
igiU+IKZNhCxqyIRNu/GahTRTwbtZr3gIBsI/xPjcgXQKXa6hi+7TvX/LL3HUTYN
EEJh/YQxbgLjXYjk2GR3IfL115K9B9UZnWVfOdgV4GyExzWWqLjq0IDFF3TC56G2
iWQ8uXhCtzibCwLgQbLhATKUlgVtgsP996ZfRJHCE8P72N8RiEKNYLSyZ/h/hBjV
mj91ifNer6bamnV+oAxoYQTAd6slXv7YPtAMR72TzhO5McCftDuXX3DCHbMwO+JU
qnuyLAvtgUP/jsZeCPZx88d5BM9ViOlWTRmvgz0noF0CjJ0sCOFCfblI72l703jt
kLCKoqczeII37Wox0cAxwdnx26pQgf5nBswJpz0/yhOXxaAZu+gL7VGz6a84+RvJ
60RoORIhzy1IACf6Xdi+QXRd0Bg0ay8uXfIMNMxS+r9H97Bw3tH+gy2cZtInh1lt
1MxTbmcOaE7enMnvPCj/hOvSJ/RvZS2G+Q13uuztJ8SKhmMcJ9DkmDLm/95Gc9uk
rrFQGuIFoNpULMaVKC45
=3jWZ
-----END PGP SIGNATURE-----




More information about the cups mailing list