cups-browsed(8)

๐Ÿ’… cups-browsed(8) โ€” your new bestie, the printer daemon

okay so bestie, listen. this is the page for cups-browsed, and yes the manual name is literally cups-browsed and it lives in section 8, and it's A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers. like... it finds printers for you. it's giving matchmaker energy but for CUPS queues. ๐ŸŽ€


โœจ SYNOPSIS โœจ

cups-browsed [-v | -d | --debug] [-c config-file]
[-o option=value] [-o 'config file line'] ...
[--autoshutdown=mode] [--autoshutdown-timeout=timeout]
[-h | --help | --version]

that's the whole vibe check right there. no cap, that's the whole invocation. ๐Ÿซถ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so cups-browsed has two functions, and they're independently switchable โ€” like two separate little toggles and you can have either, both, whatever. ๐Ÿ‘‘

  1. Browse DNS-SD broadcasts of remote printers and create/remove local CUPS queues pointing to these printers.
  2. Find shared printers on given CUPS servers and create local CUPS queues pointing to them.

now the fun part: you can run cups-browsed permanently (from system boot all the way to shutdown, main character energy, it lives there ๐Ÿ’…) or on-demand (say, to save resources on mobile devices, which honestly? valid. battery is real ๐Ÿ”‹). and if you're doing the on-demand thing, there's an auto-shutdown feature you can activate so cups-browsed just... dips when it doesn't have any queues left to take care of. iconic. it knows when to leave the party. โœจ


๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • -v, -d, --debug โ€” debug mode bestie, verbose logging straight to stderr. it will tell you everything. ๐Ÿ˜ญ
  • -l, --logfile โ€” debug logging goes into the file /var/log/cups/cups-browsed_log instead. same tea, just written down. ๐Ÿ“
  • -c config-file โ€” use the alternative configuration file config-file instead of the standard one. your file, your rules. ๐ŸŽ€
  • -o option=value, -o 'config file line' โ€” supply configuration options straight from the command line! you can hand it any line that could also go into the configuration file, but heads up: because of the spaces, that line has to be put into quotes. OR, for a simple key/value pair, you can swap the space between key and value for =. easy. ๐Ÿ’–
โš ๏ธ but like, important: if command-line-supplied configuration settings contradict the ones in the configuration file, the ones in the configuration file win. the file ate and left no crumbs. ๐Ÿ™ˆ
  • --autoshutdown=mode โ€” the auto shutdown mode, and mode can be:
    • off โ€” no auto shutdown, we stay forever ๐Ÿซถ
    • on โ€” auto shutdown is active
    • avahi โ€” control by the avahi-daemon being run on-demand: auto-shutdown gets turned off while avahi-daemon is present, and on when avahi-daemon is shut down. teamwork, kinda. ๐Ÿงš
  • --autoshutdown-on=inactivity-type โ€” this is literally what cups-browsed considers "inactivity" for auto-shutdown. inactivity-type:
    • no-queues (the default) โ€” auto-shutdown kicks in if there are no queues generated by cups-browsed any more
    • no-jobs โ€” auto-shutdown kicks in if all queues generated by cups-browsed are without jobs
  • --autoshutdown-timeout=timeout โ€” timeout tells you after how many seconds cups-browsed should shut down if it has no local queues set up for any discovered remote printer any more, or jobs on these. default is 30 seconds. and 0 means immediate shutdown โ€” like, zero chill, gone instantly. ๐Ÿ’€
  • -h, --help, --version โ€” display usage and version info and do not start the daemon. it's just here to say hi and leave. ๐Ÿ‘‹

๐Ÿ“ FILES ๐Ÿ“

  • /etc/cups/cups-browsed.conf

that's the one, that's the config file, periodt. ๐Ÿ’œ


๐Ÿ”ฅ SIGNALS ๐Ÿ”ฅ

  • SIGINT, SIGTERM โ€” cups-browsed will shutdown. bye bestie ๐Ÿ˜ญ
  • SIGUSR1 โ€” switches cups-browsed into permanent mode (no auto shutdown). it's staying. forever. ๐Ÿซถ
  • SIGUSR2 โ€” switches cups-browsed into auto shutdown mode. back to the on-demand lifestyle. โœจ

โญ NOTES โญ

this manual page was written for the Debian Project, but it may be used by others. sharing is caring, iykyk. ๐Ÿ’–


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go read it, it's the sequel. ๐Ÿ“š


and that's the whole page, bestie! ๐ŸŽ€ this little write-up is cups-browsed(8), dated 29 June 2013, and it's literally an icon of a manpage from way back. slay, stay breezy, and may your queues always be discovered. ๐Ÿ’…โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from